Deployment

Installation

To make production installation you’ll need to create project/production.py configuration file before running make. This will force using production environment. You can use development.py.sample as reference.

Configuration

You should override default configs from settings.py in production.py. Don’t forget to specify new SECRET_KEY.

Static files

By running make in production environment it automatically collects static files into var/htdocs/static. You can run it manually:

make collectstatic

Apache 2 configuration

You can generate virtualhost configuration by running:

make config/apache2.conf

It creates config file by using config/apache2.conf.sample and:

  • replaces __DOMAIN__ with parent directory name (for example if project is located at /var/www/vhosts/www.example.com, www.example.com will be used.
  • replaces __STARTER_PATH__ with project location.

You can include it in apache config by using Include <file> directive.