Database Reference
In-Depth Information
Via the Heroku client
Creating a new application via the Heroku client is very simple. The first step is to create
the application directory on your computer. For that, open the Terminal and type the fol-
lowing commands:
$ mkdir your-app-name
$ cd your-app-name
$ git init
After that you need to create a new Heroku application through the command:
$ heroku apps:create your-app-name
Creating your-app-name... done, stack is cedar-14
https://your-app-name.herokuapp.com/ | HYPERLINK
"https://git.heroku.com/
your-app-name.git" https://git.heroku.com/your-app-name.git
Git remote heroku added
Finally, you are able to deploy your source code at any time through these commands:
$ git add .
$ git commit -am "My updates"
$ git push heroku master
Tip
Another very common case is when you already have a Git repository on your computer
with the application's source code and you want to deploy it on Heroku. In this case, you
must run the heroku apps:create your-app-name command inside the applica-
tion directory and the link with Heroku will be created.
Search WWH ::




Custom Search