Report this

What is the reason for this report?

Can't launch Rails app with Nginx and passenger

Posted on September 12, 2013

Installed nginx, passenger 4.0.17, node, rails 4 and ruby 2, git and all gems.

nginx config:

server {
        listen 80;
        server_name  162.243.1.111;
	root /home/abachuk/myapp/public;
	passenger_enabled on;
	rails_env production;
}
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1828/nginx ```

what else is missing?


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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Also, what’s the contents of <code>/etc/nginx/sites-enabled</code>?

Make sure <code>/home/abachuk/myapp/public</code> is viewable to the public. <br> <br>What’s the output of <code>ls -l /home/abachuk/myapp/public</code>?

the output is. Made public folder (chmod -R 755) ‘public’ <br>drwxr-xr-x 9 abachuk abachuk 4096 Sep 11 11:36 app <br>drwxr-xr-x 2 abachuk abachuk 4096 Sep 11 11:36 bin <br>drwxr-xr-x 5 abachuk abachuk 4096 Sep 11 11:36 config <br>-rwxr-xr-x 1 abachuk abachuk 161 Sep 11 11:36 config.ru <br>drwxr-xr-x 3 abachuk abachuk 4096 Sep 12 02:11 db <br>-rwxr-xr-x 1 abachuk abachuk 1474 Sep 12 02:41 Gemfile <br>-rwxr-xr-x 1 abachuk abachuk 4622 Sep 12 02:53 Gemfile.lock <br>drwxr-xr-x 4 abachuk abachuk 4096 Sep 11 11:36 lib <br>drwxr-xr-x 2 abachuk abachuk 4096 Sep 11 11:36 log <br>drwxr-xr-x 3 abachuk abachuk 4096 Sep 11 11:36 public <br>-rwxr-xr-x 1 abachuk abachuk 256 Sep 11 11:36 Rakefile <br>-rwxr-xr-x 1 abachuk abachuk 24 Sep 11 11:36 README.md <br>-rwxr-xr-x 1 abachuk abachuk 478 Sep 11 11:36 README.rdoc <br>drwxr-xr-x 8 abachuk abachuk 4096 Sep 11 11:36 test <br>drwxr-xr-x 6 abachuk abachuk 4096 Sep 11 11:36 tmp <br>drwxr-xr-x 3 abachuk abachuk 4096 Sep 11 11:37 vendor

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.