By abdullah12
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.