iCyborg
iCyborg

Reputation: 4728

How to move Rails app + pgsql database from localhost to my server?

I am assuming I have to use capistrano but still unsure. I want to move my rails app and the databases (since they already have lot of data now) to the server, how can I do it ?

Thanks

Upvotes: 0

Views: 651

Answers (2)

hd1
hd1

Reputation: 34657

to move your database schema... rake db:schema:dump will dump it to schema.rb and rake db:schema:load will load them.

Upvotes: 1

Richard Brown
Richard Brown

Reputation: 11436

You can use capistrano to build a deployment system. I personally use git to promote my apps to production. I use Engine Yard (www.engineyard.com) and Heroku (www.heroku.com) for hosting. Deployment is super-simple with both.

As far as the database goes it depends on your server implementation. Most likely you'll need to backup and restore the database into production.

Upvotes: 0

Related Questions