@@ -50,7 +50,7 @@ COPY --from=builder /venv /venv
COPY --from=front-end /front-end/dist /front-end-build
ADD nginx.conf.sigil /app
-ADD app.json /app
+# ADD app.json /app
# Set up a volume where the data will live
VOLUME ["/data"]
@@ -5,7 +5,8 @@ from django.core.management import call_command
def run():
django.setup()
- call_command('migrate')
+ call_command("collectstatic", "-c")
+ call_command("migrate")
uvicorn.run("mwmbl.asgi:application", host="0.0.0.0", port=5000)
@@ -8,6 +8,9 @@ from mwmbl.settings_common import *
SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]
+STATIC_ROOT = "/app/static/"
+
DATABASES = {'default': dj_database_url.config(default=os.environ["DATABASE_URL"])}
DEBUG = True # TODO set back to False