Site5 - Built For Designers & Developers MENU

How do I deploy a Ruby on Rails site from my local machine to Site5?

[3 Grey Star Level]

I have developed a Ruby on Rails site on my local machine, but now I need to migrate it over to Site5.

I have MySQL, RoR 3.07, and Passenger all setup and working on my machine running off of localhost.

What is the best way migrate a site over?

Answer #1

Hey Ryan,

If you are already using Passenger locally, that should make deployment easier for you. Depending on how you have your local dev server configured, you may still need to add the following lines in your .htaccess file (within public) on our server, if you don’t already:

PassengerEnabled On
PassengerAppRoot /home/USERNAME/path/to/rails/app

If you run into any trouble, try to refer to the guide in our KB for deploying apps (ignore the parts about creating a new app):

http://kb.site5.com/ruby-on-rails/how-to-deploy-a-rails-3-application-with-phusion-passenger/

And of course, feel free to ask another question if you get stuck!

Thanks,

Graham

Answers Answered By: gmcmillan [38 Green Star Level]

Answer #2

Summarized in what should only be a few steps for you:

1. Copy your app to our server.
2. Install the needed gems on our server via Bundler.
3. Create a MySQL user/database in SiteAdmin/cPanel (remember to grant privileges). Make sure you modify your database.yml file accordingly.
4. Do a database migration (make sure ENV = production)
5. Ensure that the .htaccess changes I mentioned above are set.
6. Bask in the glory of your Site5 powered Rails app 🙂

Answers Answered By: gmcmillan [38 Green Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.