Heroku is an online Rack (and by extension, Ruby on Rails) cloud PaaS (Platform as a Service) run by the San Francisco, California based company with the same name. As one of the very first cloud platform as a service providers, Heroku has been in development since June 2007 and the company reports over 119,000 applications running on its service.
First we have to install “heroku’ in our machine, using the following command.
$ sudo gem install heroku
Then, we have to create a heroku account here.
Now we have to upload our machine ssh key to Heroku, to push your work.
$ heroku keys:add
Now to create a remote application at Heroku, type this from the master branch of our rails project directory.
$ heroku create
$ heroku rename thasu
Now to push your work on to the Heroku,
$ git push heroku master
That’s all !!!