29.3 Deploying to Heroku

Preparing for deployment is the hardest part of deploying to Heroku. Actually deploying is incredibly simple.

Start by logging into the service using the toolbelt CLI, as shown in Example 29.34.

Example 29.34: Shell Code

$ heroku login

We then create a new Heroku app, as shown in Example 29.35.

Example 29.35: Shell Code

$ heroku create

This command creates a cloud instance and connects our git hub repository to Heroku. Heroku assigns your app a random name, but you can rename the app to whatever you wish, as shown in Example 29.36.

Example 29.36: Shell Code

$ heroku apps:rename newname

If you are deploying your own website, you may want to change the app name. If you are deploying the suorganizer project, I urge ...

Get Django Unleashed 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.