The Heroku Magic!!!!

Heroku is a cloud Platform-as-a-Service (PaaS) supporting several programming languages. Heroku was acquired by Salesforce.com 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 :https://en.wikipedia.org/wiki/Herok

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

production:

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’

end

 

1
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- https://toolbelt.heroku.com/install-ubuntu.sh | sh

 

for windows users :

https://toolbelt.heroku.com/windows

 

 Heroku Login:

using the below command:

heroku login

6
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.

2
heroku free account issue

then type heroku create

3
heroku app create

 

Push to Heroku master

7
heroku push
8
deployed

migrate app:

9
heroku migrate

 

rename app:

10
heroku rename

 

Thanks .. all done.. hurray..

http://bookstorebava.herokuapp.com/

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s