Remarks[edit | edit source]
Heroku is a popular Platform-as-a-Service provider (PaaS) which makes it easy for developers to deploy web applications without an operations team. Heroku has been around since 2007, and is now owned by Salesforce.
This section provides an overview of what Heroku is, and why a developer might want to use it.
It should also mention any large subjects within Heroku, and link out to the related topics. Since the Documentation for Heroku is new, you may need to create initial versions of those related topics.
Installation or Setup[edit | edit source]
To create and manage Heroku apps locally you'll need the Heroku Toolbelt, here are some ways to get it.
Download[edit | edit source]
Download the Heroku Toolbelt installer from Heroku's website.
Homebrew[edit | edit source]
brew install heroku
Debian/Ubuntu[edit | edit source]
Run this script:
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
This script adds the Heroku repository to apt, installs the Heroku release key, installs the Heroku Toolbelt and then installs Ruby if you need it.
As with any script you find online and pipe directly to bash we highly recommend you read the source first.
Creating Heroku Applications[edit | edit source]
You can use the
heroku create command to create a Heroku application. Each application you deploy to Heroku has its own code base, environment variables, addons, etc.
Each Heroku application has a globally unique name. If you try to create a Heroku application whose name is already taken, you will get an error.
Here's how you can create a new Heroku application:
heroku create [app_name]
If you don't specify an application name when running
heroku create, Heroku will create a random application name for you.
You can also specify the Amazon region in which your Heroku application should be created. By default, all Heroku applications are created in the
us region. If you'd like to change the region, you can do so by creating the application like so:
heroku create [app_name] --region eu
Right now, there are only two public regions:
Using the Heroku Toolbelt[edit | edit source]
Create an application[edit | edit source]
heroku create your-app-name
Deploy to Heroku[edit | edit source]
git push heroku master
Open your application in a browser[edit | edit source]
heroku open your-app-name
List Heroku commands[edit | edit source]
General help[edit | edit source]
Help for a specific command[edit | edit source]
heroku help <command>