Report this

What is the reason for this report?

how do i change the location of my rails directory?

Posted on October 4, 2014

I am using ruby or rails ubuntu 64 droplet with nginx and unicorn. By default the rails directory is located at" \home\rails". How can I change this location to “\home\mytestapp” ?



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.
0

Accepted Answer

Check out this tutorial for all the info on how the Ruby on Rails one-click application is built and how to deploy your own application on it:

This is covered in more detail there, but the quick answer is that you need to update the references to the demo app in a number of places:

  • /etc/unicorn.conf
  • /etc/default/unicorn
  • /etc/nginx/sites-enabled/rails

Replace mentions of /home/rails/rails_project with the path to your app: \home\rails\mytestapp

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.