Link to home
Start Free TrialLog in
Avatar of bbrunning
bbrunningFlag for United States of America

asked on

How do I move Ruby On Rails site to new web server

My client wants to move off their dedicated server and onto a shared hosting server to cut costs.
I set them up with bluehost with ssh enabled and a dedicated ip address.
I need to get the site working before transferring dns because of their email so I'm just using the new ip address:
70.40.197.119
I downloaded/uploaded the website and exported/imported the sql files. added the appropriate usernames/passwords edited in database.yml
I go to the site and nothing. I have no idea what I'm doing, I don't know ror. Is there good way to move websites programmed in ror?

Thanks in advance!
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

I think  you like to learn Capistrano
http://www.capify.org/index.php/Capistrano

or maybe Vlad
http://www.rubyhitsquad.com/Vlad_the_Deployer.html

Regards
Friedrich
ASKER CERTIFIED SOLUTION
Avatar of wesgarrison
wesgarrison
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Finally, I'd really suggest looking at heroku (http://heroku.com) to deploy your application.
Deploying is as easy as pushing to their server, but there are quite a few things you need to know (git, database config, etc) in order to use it easily.
Avatar of JimOser
JimOser

If you don't know what you are really doing, then I would strongly suggest not experimenting with your customers live data.

Whoever wrote the ruby on rails website, knows exactly how to get the website on another server, and also may know why it is on a dedicated server in the first place. By the way, it really a dedicated server, or is a slice, like what is available from linode.com

My concern would be what information is stored on the dedicated server. Suppose you successful get the ruby on rails website, up and running on the shared host, do you know what else is on the dedicated server?

Perhaps all the source code for the ruby on rails project is on the dedicated server. Perhaps there is a svn or git repository that has the complete history of the project. Perhaps there is an email program on the dedicated server that is hosting multiple domains or doing something else clever.

If you are willing to learn rails, and see what wesgarrison means when he suggests using heroku, then you can start with the material here, that is normally used in a 2 day workshop to learn ruby and rails. At the end of the 2 days, you host your own application on heroku. Once you figure out how to host on heroku, then you can figure out how to host on bluehost (but please be sure you really know what is on the dedicated server before you cancel the account, and forever lose the data)

Install rails on your machine.
http://wiki.devchix.com/index.php?title=Workshop_Installation_Notes


Create test app and push it to heroku.
http://wiki.devchix.com/index.php?title=Server_2003#Push_test_app_to_Github
+1 for JimOser's answer. Lots of concerns to worry about.
Avatar of bbrunning

ASKER

Thanks for all the info, I'll go through it tonight.
Jim: Thanks for the concerns....let me rephrase it. I understand how the server works. 've been managing the dedicated server for 5 years now. I know linux, I just don't know rails. I have multiple sites on the dedicated server which have already been moved over to new hosting locations. It's the ror site that I'm having problems with. Also is there a way to check for dependencies/libraries that rails is using so I can make sure I move them/install them on the new one.

The main reason we bought this dedicated server was because ruby wasn't standard on most hosting 5 years ago and their old web designer requested it, then quit right after the website was done and has since dropped off the face of the planet. So, there's no way to get back in touch with him.
@wesgarrison,

He want to migrate from one machine to another and for such kinds of task the  beforementioned libraries were developed....