aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-08-25 22:34:14 +0000
committerGravatar GitHub <[email protected]>2021-08-25 22:34:14 +0000
commited15b2c737bffc83008c694f01ad693ddbdd974a (patch)
treee2a86033ac099a20f87c869a305ae0420f9b7ed9 /manage.py
parentMerge pull request #565 from ethansocal/main (diff)
Run collectstatic in the image build process, disable in prod startup
Diffstat (limited to 'manage.py')
-rwxr-xr-xmanage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/manage.py b/manage.py
index d21546e1..e4d24002 100755
--- a/manage.py
+++ b/manage.py
@@ -138,10 +138,12 @@ class SiteManager:
print("Applying migrations.")
call_command("migrate", verbosity=self.verbosity)
- print("Collecting static files.")
- call_command("collectstatic", interactive=False, clear=True, verbosity=self.verbosity)
if self.debug:
+ # In Production, collectstatic is ran in the Docker image
+ print("Collecting static files.")
+ call_command("collectstatic", interactive=False, clear=True, verbosity=self.verbosity)
+
self.set_dev_site_name()
self.create_superuser()