how do i change the location of my rails directory?

October 4, 2014 667 views

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

1 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

DigitalOcean's Ruby on Rails One-Click application provides a convenient way to get your Rails app up and running quickly. With Nginx, Unicorn, and Postgres all pre-installed, the One-Click is a great base for hosting your app. This tutorial will give you all the details you need to get your project off the ground.
Have another answer? Share your knowledge.