Question

Rails Unicorn + Nginx image Question

  • Posted on June 30, 2013
  • gricksAsked by gricks

I’m using the DigitalOcean Rails pre-configured image. I’m trying to change the default rails application from /home/rails to /home/app/demo/current .

In my /home/unicorn/unicorn.conf file, I changed the working directory to reflect ‘home/app/ricks/current’ . I also changed my /etc/default/unicorn APP_ROOT to reflect /home/app/demo/current

I then restarted nginx by stopping and then reloading it. I also restarted my droplet.

For some reason, when I navigate over to my droplet’s assigned IP address, I still see the default ‘Welcome to Rails’ page that came with the droplet, instead of my application which resides in /home/app/demo/current

Can you please explain to me what I am doing wrong or what I need to do in order to get my application to show up?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@ashortt: Yes, <br> <br><pre>sudo service unicorn restart</pre>

I had to reboot the droplet to get the changes to show - is there a way just to restart Unicorn? <br>

Change Ruby on Rails Application <br> <br>Modify Configuration in Unicorn <br> <br>/home/unicorn - > unicorn.confg <br> <br>user “rails” <br>working_directory “/home/rails” <br> <br> <br>etc/default/unicorn <br> <br>APP_ROOT=/home/rails <br> <br>https://www.digitalocean.com/community/articles/how-to-1-click-install-ruby-on-rails-on-ubuntu-12-10-with-digitalocean <br>