From f9b836c85b6aeb2b3918b4aaafe53354a98d13d3 Mon Sep 17 00:00:00 2001 From: John Whitlock Date: Wed, 25 Jul 2018 16:33:58 -0500 Subject: [PATCH] bug 1468491: Fix production mode instructions "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. --- docs/development.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development.rst b/docs/development.rst index 7f05676ecf..b7a611ca26 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -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