Posts Tagged getting started
If you are planning on playing with heroku, this post will help you get started in setting up your local machine with heroku CLI (command line interface) and Git (open source cloud based version control system).
Note that this post is a simplified and more detailed version of heroku quickstart article available at :
Update — If you are using Mac OSX, you might want to just download the Heroku Toolbelt (http://toolbelt.heroku.com) The toolbelt (heroku CLI & Git ) will provide you everything you need to get started using Heroku!
1. Download Git for your OS and sign up for free Git account http://git-scm.com/download
2. A Heroku user account. Signup is free and instant.
3. Since heroku CLI is a ruby gem, in order to install it, you will need to install ruby locally on your machine.Installing the latest Ruby version with RVM is simply done by typing :
rvm install 1.9.3.
Note that if you do not have rvm installed, you can install it on mac/linux by:
$ bash curl -s https://rvm.beginrescueend.com/install/rvm.
You might need to prefix the command using sudo ($ sudo curl -s https://rvm.beginrescueend.com/install/rvm)
4. Ensure that you have ruby installed by typing ruby –version
5. Using command line install heroku by typing:
$gem install heroku
Note that this will prompt you for your heroku credentials (which you used at step 2). After this step is finished your email address and API token will be saved to ~/.heroku/credentials
Also note that you might want to prefix the command with sudo (sudo gem install heroku) to make the command write the gem to the destination directories. If this still fails, try running:
$sudo gem install addressable
and then execute $sudo gem install heroku
6. It’s generally a good idea to add your public key immediately after installing the heroku gem so that you can use git to push or clone Heroku app repositories:
Enter your heroku crendentials:
Uploading ssh public key /Users/ssharaf/.ssh/id_rsa.pub.
7. At this point, you should be ready to start playing with the coolest PAAS (platform as a service) aka heroku!
Note that for application development you might want to install maven and OpenJDK v6 (for Java)