The first thing to do when creating apps on heroku is to signup heroku :). We need to install the toolbelt, because I'm using windows, so I install the heroku toolbelt installer. As for starter here's the tutorial on how to? with heroku https://devcenter.heroku.com/articles/quickstart
Assuming we already install rubyonrails with the railsinstaller and we already done with simple web application which is the infamous todo list :).
1. Open git bash, login to heroku
heroku login // to login, shown below the output. need to generate public key
Enter your Heroku credentials.Email: adam@example.comPassword:Could not find an existing public key.Would you like to generate one? [Yn]Generating new SSH public key.
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub
2. Check the git for any modification, add, commit and push to github first before push to heroku
git status
git add .
git commit -m "Your note here"
git push
3. Then we need to push to heroku, this mean we have done heroku login and save the public key
git push heroku master
Thats it, we have create our heroku application.
No comments:
Post a Comment
If you have any comment and question, please don't hesitate to post.