0

I'm not sure if this question suits SO but I've been testing out Carrierwave & tweaking it a little. I've noticed that when uploading a file to s3 using fog (this are small files, by the way..), my Rails app comes to a 'stand still' until the upload finishes processing.


I'm going to move all the processing to the background later on but this has me wondering:

Is it only like this in development?

Any overall suggestions?

4

2 回答 2

1

Please see Best Ruby on Rails Architecture for Image Heavy App, et al. My answer there is specifically about Heroku, but Heroku's merely a worst-case-scenario due to their many-small-servers architecture.

于 2013-09-21T15:11:50.110 回答
0

I have similar issues when using the default webrick, but when uploading in production with apache and passenger, I do not have these issues. You might try switching to thin in your development environment to see if that yields better results.

于 2013-09-19T04:09:31.083 回答