I am running a VPS on Centos6.6. I removed Apache and installed Nginx, plus Ruby and Rails and Passenger. Created a sample Hello_World and followed directions from a couple of sites. But when I go to my Browser and point to the site I get an “Incomplete response received from the application” message
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This error frequently occurs when your application’s secret key base is not set and you attempt to run it in production mode. If you’re are still just in the testing and development phase, the quickest way to resolve the issue is to set passenger_app_env in your Nginx configuration to development mode:
server {
listen 80 default_server;
server_name example.com;
passenger_enabled on;
passenger_app_env development;
root /home/rails/app/public;
}
When running in production, you’ll want to make sure that the secret key base is correctly configured. First, make sure your config/secrets.yml file contains:
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Next, generate a secret key base by running the command rake secret in your Rails project. Now export that value as the SECRET_KEY_BASE environmental variable.
For more info, check out:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.