Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
bug 1468491: Fix production mode instructions
Browse files Browse the repository at this point in the history
"make build-static" will use
DJANGO_SETTINGS_MODULE=kuma.settings.local
by default, which disables hashed assets. The plain "docker" command is
needed to override the environment variable.
  • Loading branch information
jwhitlock committed Jul 25, 2018
1 parent 5106c8d commit f9b836c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ To emulate production, and test compressed and hashed assets locally:
#. Set the environment variable ``DEBUG=False``
#. Start (``docker-compose up -d``) or restart (``docker-compose restart``)
your Docker services.
#. Run ``docker-compose exec web make build-static``.
#. Run ``docker exec -e DJANGO_SETTINGS_MODULE=kuma.settings.prod kuma_web_1 make build-static``.
#. Restart the web process using ``docker-compose restart web``.

Using secure cookies
Expand Down

0 comments on commit f9b836c

Please sign in to comment.