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?
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:
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):
And of course, feel free to ask another question if you get stuck!
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 🙂
You must be Logged In to post an Answer.
Not a member yet? Sign Up Now »