Question

I've tried to run Nginx Ruby On Rails Ubuntu 16:04. I'm facing the same issue with both solution I tried.

Posted January 31, 2018 1.5k views
Ruby on RailsNginxDigitalOcean 1-Click Apps MarketplaceUbuntu 16.04

I follow steps from the blog. Some steps cause me lot of troubles. So move to One-click Install Ruby On rails droplet. It works with the default project. But I want to run my project, using the sites-enabled conf.

All file are uploaded to :
1- /var/www/metribook/epicure-app
2- in /etc/nginx/sites-enabled I changed the default site config to the one in 1)
3- I got the same error when I restart nginx service with sudo: sudo service nginx restart
error: Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.

I got the same error with the first Droplet. I already install Nginx with Passenger many times on EC2 but I cannot resolve this issue. Need some help.

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.

×
1 answer

Most likely you forgot to add a ; usually after the listen directive and declaring it on port 80.

Additionally, we have also launched an app platform where we provided a managed Ruby on Rails solution where you can just push your code to Github and have it deployed automatically so you don’t need to install and manage Rails yourself anymore unless you want to.

You can find out more information about our app platform here:
https://www.digitalocean.com/products/app-platform/

Submit an Answer