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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
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