aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-08-27 21:07:02 +0100
committerGravatar GitHub <[email protected]>2021-08-27 21:07:02 +0100
commitee0fcd38d434540f83dc2ea2457db43c12791441 (patch)
tree58b57f2fd4c38b334828ce9364f6128bbf7cf7bc /manage.py
parentMerge pull request #569 from KittyBorgX/main (diff)
parentLinting compliance (diff)
Merge pull request #568 from python-discord/jb3/collectstatic-build
Diffstat (limited to 'manage.py')
-rwxr-xr-xmanage.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/manage.py b/manage.py
index d21546e1..8bb5ae0d 100755
--- a/manage.py
+++ b/manage.py
@@ -138,10 +138,17 @@ 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 - 1
+ )
+
self.set_dev_site_name()
self.create_superuser()