Hi,
Today i was facing a problem regarding "How To Download My Project From Heroku". I got it working from the following steps
Step 1. Go to ruby command prompt and type the following command
heroku login
in my case it is
c:\RailsInstaller\Ruby1.9.3\> heroku login
and press enter it would ask for your heroku email and password that you have setup when configuring your project on heroku.
The screen would look like
Enter your Heroku credentials.
Email: <your email address>
Password (typing will be hidden): <your password>
Authentication successful.
Step 2. Next step is to clone the heroku project from git command i.e
heroku git:clone -a <your project name>
It would ask for the SSH keys, select option
2) id_rsa.pub
It should download the files. But still if you face this error i.e
"Permission denied (Public Key)"
Then follow the steps below to get it working.
Step 3.Type
heroku keys:add
It will find the heroku SSH keys. Select the option 2 in my case it is 2 for id_rsa.pub. It would display the message like
Uploading SSH public key c:/users/<windows logged username>/.ssh/id_rsa.pub.... done
Step 4. Then give the command
heroku git:clone -a <your project name>
It should start cloning the app. Once its done go into the directory to view the files by giving command
cd <your project name>
You should see the files which the clone has created.
Step 5. Now its time to install the dependent bundle's required to run the project. Give the command
bundle install
It would install all the bundles required to run the project.
Step 6: Now its the showtime. Run the following command to run the project
rails s
It would start the local server to run the project files.
Step 7: Go to your browser and type in the url
localhost:3000/<your project name>
It would execute the default page.
Enjoy!!!
Today i was facing a problem regarding "How To Download My Project From Heroku". I got it working from the following steps
Step 1. Go to ruby command prompt and type the following command
heroku login
in my case it is
c:\RailsInstaller\Ruby1.9.3\> heroku login
and press enter it would ask for your heroku email and password that you have setup when configuring your project on heroku.
The screen would look like
Enter your Heroku credentials.
Email: <your email address>
Password (typing will be hidden): <your password>
Authentication successful.
Step 2. Next step is to clone the heroku project from git command i.e
heroku git:clone -a <your project name>
It would ask for the SSH keys, select option
2) id_rsa.pub
It should download the files. But still if you face this error i.e
"Permission denied (Public Key)"
Then follow the steps below to get it working.
Step 3.Type
heroku keys:add
It will find the heroku SSH keys. Select the option 2 in my case it is 2 for id_rsa.pub. It would display the message like
Uploading SSH public key c:/users/<windows logged username>/.ssh/id_rsa.pub.... done
Step 4. Then give the command
heroku git:clone -a <your project name>
It should start cloning the app. Once its done go into the directory to view the files by giving command
cd <your project name>
You should see the files which the clone has created.
Step 5. Now its time to install the dependent bundle's required to run the project. Give the command
bundle install
It would install all the bundles required to run the project.
Step 6: Now its the showtime. Run the following command to run the project
rails s
It would start the local server to run the project files.
Step 7: Go to your browser and type in the url
localhost:3000/<your project name>
It would execute the default page.
Enjoy!!!
No comments:
Post a Comment
Comments are welcome, Please join me on my Linked In account
http://in.linkedin.com/pub/ritesh-tandon/21/644/33b