29.2.5 Running Foreman’s Server

When we installed Heroku’s toolbelt CLI, we also installed the foreman server (http://theforeman.org/). The foreman will be used by Heroku in the cloud, and having it on our server locally provides the ability to test our production settings. Many development teams will create an entire server or cloud instance to test production settings. These servers or instances are called staging servers. In our case, we can create a simple staging server by running foreman.

The problem with our staging server, if we run it, is that our production settings are currently intended to work with Heroku, and not with our local setup. The production settings don’t define a secret key and cryptically define a database. We need to ...

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.