From f27a50ad7273638524bd359dd0ef2c4739e19947 Mon Sep 17 00:00:00 2001 From: Trey t Date: Mon, 26 Jun 2023 13:18:29 -0500 Subject: [PATCH] WIP --- misc/dokku/Procfile | 2 +- werkout_api/settings.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/dokku/Procfile b/misc/dokku/Procfile index 0a21fca..6d4abbc 100644 --- a/misc/dokku/Procfile +++ b/misc/dokku/Procfile @@ -1,3 +1,3 @@ -web: gunicorn werkout_api.wsgi:application +web: gunicorn werkout_api.wsgi:application --port 5000 --bind 0.0.0.0 beat: /usr/local/bin/celery -A werkout_api beat -linfo worker: /usr/local/bin/celery-A werkout_api worker -l info \ No newline at end of file diff --git a/werkout_api/settings.py b/werkout_api/settings.py index a6c0f0c..203c7af 100644 --- a/werkout_api/settings.py +++ b/werkout_api/settings.py @@ -121,6 +121,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media") if os.environ.get("DATABASE_URL"): + print("------0-0-0-0----------0-0-0-0---------") ALLOWED_HOSTS = ['*'] # if os.environ.get("IS_DEV"): @@ -141,7 +142,7 @@ if os.environ.get("DATABASE_URL"): # } CSRF_TRUSTED_ORIGINS = ['https://*.werkout.fitness'] - SECRET_KEY = o.environ.get("SECRET_KEY", 'secret') + SECRET_KEY = os.environ.get("SECRET_KEY", 'secret') # Parse the DATABASE_URL env var. USER, PASSWORD, HOST, PORT, NAME = re.match("^postgres://(?P.*?)\:(?P.*?)\@(?P.*?)\:(?P\d+)\/(?P.*?)$", os.environ.get("DATABASE_URL", "")).groups()