how do i change the location of my rails directory?

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” ?

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.

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