Deploying apps to Heroku is as simple as
git push heroku master
But you need a little bit of setup first.
If you haven’t got git, install it with
apt-get install git-core
You will also need the Heroku gem
gem install heroku
Then set up your app, adding the files to the git repository
cd myapp
git init
git add *
git commit -m 'first commit, using git for pushes to heroku which hosts rails apps free and uses git'
Create a key for secure authentication to Heroku
ssh-keygen -t rsa -C "me@mycompany.com"
heroku keys:add
Create your heroku app
heroku create
And push your new rails app to it
git push heroku master
Now browse to the url you were given in previous steps as feedback from heroku, and you should see your app, now live !