Deploying to the Public Cloud

The first step in deploying to a new production environment is making sure it exists! Create a new Heroku app for Twitalytics using the CLI:

 $ ​​heroku​​ ​​create
 Creating calm-ocean-4238... done, stack is cedar-14
 https://calm-ocean-4238.herokuapp.com/ | https://git.heroku.com/...
 Git remote heroku added

The new app on the Heroku servers includes its own Git repository. This Git repository is very similar to a GitHub repo you might push to, but it lacks the fancy user interface. This repo isn’t for collaborating—it’s for deployment. You can view the location of the repo by running the following command:

 $ ​​git​​ ​​remote​​ ​​-v
 heroku https://git.heroku.com/calm-ocean-4238.git (fetch)
 heroku https://git.heroku.com/calm-ocean-4238.git ...

Get Deploying with JRuby 9k now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.