Move Few Steps to Deploy Ruby code on Server
The Followings steps help you the deploy your ruby code on server from your local environment. you need to have capistrano 2.2.0 and railsmachine 1.0.0 installed locally or upgraded version.
1) Need to install rails-machine.
c:\> gem install railsmachine
if you find any problem then directly download .gem file from http://rubyforge.org/frs/?group_id=1336&release_id=30415.
After downloading the gem file try this.
c:\> gem install railsmachine-1.0.1.gem
2)Install Capistrano with all dependancies
gem install -y capistrano
if you find any problem then download directly from http://www.capify.org/download.
3) Capify your application
c:> capify .
Now the deploy.rb file will created under
4) Configure Capistrano for Rails Machine
c:> railsmachine --apply-to . --name my_app --domain my_domain.com
5) Modify the deploy.rb as per your requirements(if any)
6) Deploy the Code
c:\
or,if you need to run migrations as well
c:\