You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here there. I can't seem to get streaming working in my Rails app on Heroku with Unicorn. I also tested locally with Foreman with no luck. I am using the same view code as is in the test app for this gem. The file download never initiates... it just spins while it cranks through the loop. I know this isn't much to go on, but is there anything I could be missing?
Controller:
@streaming = true
@filename = 'report.csv'
respond_to do |format|
format.csv
end
View:
10_000_000.times do |i|
csv << ["this","is","a","scale","test",i.to_s]
end
Here's an update. I noticed that I have to use gem 'csv_streamer' not csv_builder. After switching that, I get the following when trying to start the server:
Here there. I can't seem to get streaming working in my Rails app on Heroku with Unicorn. I also tested locally with Foreman with no luck. I am using the same view code as is in the test app for this gem. The file download never initiates... it just spins while it cranks through the loop. I know this isn't much to go on, but is there anything I could be missing?
Controller:
View:
Procfile:
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
Unicorn.rb
The text was updated successfully, but these errors were encountered: