The Heroku Magic!!!!

Heroku is a cloud Platform-as-a-Service (PaaS) supporting several programming languages. Heroku was acquired by in 2010.[1] Heroku, one of the first cloud platforms[citation needed], has been in development since June 2007, when it supported only the Ruby programming language, but has since added support for Java, Node.js, Scala, Clojure, Python, PHP, and Go.   

source :

Create an app in and push to GitHub

check the branch

      make sure that it is master branch and all are running smoothly

database.yml and gem update


adapter: postgresql
  encoding: unicode
  database: demo_app_db
  pool: 5
  username: root
  password: root

paste the above code to database.yml and put a database name for your db. make sure that adapter is postgresql; mySql has some depandancy issues with the heroku . we dont go to the details of that .

Also add a

group :production do

gem ‘pg’



App Branch

install Heroku toolbelt:

toolbelt is a useful CLI will sort all the problems out.  for Linux users type the following command:

wget -O- | sh


for windows users :


 Heroku Login:

using the below command:

heroku login

heroku login

Heroku Create:

create an app using the command

heroku create

this will create a random named app; but the issue is that i am using the free account ; so it will allow only the 5 apps at a time.

heroku free account issue

then type heroku create

heroku app create


Push to Heroku master

heroku push

migrate app:

heroku migrate


rename app:

heroku rename


Thanks .. all done.. hurray..



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s