Book Image

Learning Heroku Postgres

By : Patrick Rafael de Oliveira Espake
Book Image

Learning Heroku Postgres

By: Patrick Rafael de Oliveira Espake

Overview of this book

Table of Contents (17 chapters)
Learning Heroku Postgres
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Keyword List
Index

Deploying the sample application


First you will create a new Heroku application. Before executing the following command, check that you are inside the ruby-getting-started directory:

$ heroku create
Creating mighty-atoll-7219... done, stack is cedar-14
https://mighty-atoll-7219.herokuapp.com/ | https://git.heroku.com/mighty-atoll-7219.git
Git remote heroku added

A new application was created with the name mighty-atoll-7219 and provided at https://mighty-atoll-7219.herokuapp.com. This URL will start working only after the first deploy. A Git repository was also created. This repository is available at https://git.heroku.com/mighty-atoll-7219.git and you can also add it using the git [some action] heroku command.

Finally, for starting the deploy, just type the command:

$ git push heroku master
Counting objects: 168, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (110/110), done.
Writing objects: 100% (168/168), 30.31 KiB | 0 bytes/s, done.
Total 168 (delta 46), reused...