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.
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:
To create and manage Heroku apps locally you'll need the Heroku Toolbelt, here are some ways to get it.
Download the Heroku Toolbelt installer from Heroku's website.
brew install heroku
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.
heroku create your-app-name
git push heroku master
heroku open your-app-name
heroku help <command>