Slow initial server startup when using Phusion Passenger and Rails

What’s happening is that your Application and/or ApplicationSpawners are shutting down due to time-out. To process your new request, Passenger has to startup a new copy of your application, which can take several seconds, even on a fast machine. To fix the issue, there are a few Apache configuration options you can use to keep … Read more

“Incomplete response received from application” from nginx / passenger

Your rails_env production don’t have required set up,probably missing secret_key_base. Open /etc/nginx/sites-available/default and change the rails_env to development: rails_env production; to rails_env development; If the app is loading it’s not a passenger issue. Production Solution: Enter your app root run: rake secret copy the output go to /yourapp/config/secrets.yml set the production secret_key_base Restart the passenger … Read more

Is it possible to put binary image data into html markup and then get the image displayed as usual in any browser?

There are other (better) ways, described in other answers, to secure your files, but yes it is possible to embed the image in your html. Use the <img> tag this way: <img src=”data:image/gif;base64,xxxxxxxxxxxxx…”> Where the xxxxx… part is a base64 encoding of gif image data.

Ruby on Rails Server options [closed]

The word “deployment” can have two meanings depending on the context. You are also confusing the roles of Apache/Nginx with the roles of other components. Historic note: This article was originally written on November 6, 2010, when the Ruby app server ecosystem was limited. I’ve updated this article on March 15 2013 with all the … Read more