Sunday, January 9, 2011

Running ruby on rails 3 in heroku

heroku is a hosting site that Offers a solution to deploy and host rails applications with git.The latest ROR 3 is also supported by heroku.it provide free as well as paid options.
we have been running our rails apps in our localhost (http://localhost:3000).but every one needs to implement online that is in real time integration with a domain name.heroku provides a great help to deploy our rails application online.
Create a account in heroku.
I will teach how to integrate your rails app to heroku step by step

I think every  one who are following this example have already installed ROR3 on windows.if not follow this link

Step1:installing git on windows
Simply download and install the msysGit package.

Open Git bash 

Enter the following command then heroku will be installed
gem install heroku

create a ssh key in windows
$ ssh-keygen -t rsa -C "yourmailid@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/tekkub/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/tekkub/.ssh/id_rsa.
Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.
The key fingerprint is:
01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db tekkub@gmail.com

then enter the following command
heroku keys:add

add the following commands one by one (instead of rails myapp you can also use rails new myapp)

enter the following command to open the app in browser
heroku open

http://blazing-ice-281.heroku.com/     ----------demo

thats it  you have a running rails app on heroku

for more information look heroku docs

No comments:

Post a Comment

fuzionpro Headline