WIP
This commit is contained in:
@@ -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
|
beat: /usr/local/bin/celery -A werkout_api beat -linfo
|
||||||
worker: /usr/local/bin/celery-A werkout_api worker -l info
|
worker: /usr/local/bin/celery-A werkout_api worker -l info
|
||||||
@@ -121,6 +121,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
|||||||
|
|
||||||
|
|
||||||
if os.environ.get("DATABASE_URL"):
|
if os.environ.get("DATABASE_URL"):
|
||||||
|
print("------0-0-0-0----------0-0-0-0---------")
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
# if os.environ.get("IS_DEV"):
|
# if os.environ.get("IS_DEV"):
|
||||||
@@ -141,7 +142,7 @@ if os.environ.get("DATABASE_URL"):
|
|||||||
# }
|
# }
|
||||||
|
|
||||||
CSRF_TRUSTED_ORIGINS = ['https://*.werkout.fitness']
|
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.
|
# Parse the DATABASE_URL env var.
|
||||||
USER, PASSWORD, HOST, PORT, NAME = re.match("^postgres://(?P<username>.*?)\:(?P<password>.*?)\@(?P<host>.*?)\:(?P<port>\d+)\/(?P<db>.*?)$", os.environ.get("DATABASE_URL", "")).groups()
|
USER, PASSWORD, HOST, PORT, NAME = re.match("^postgres://(?P<username>.*?)\:(?P<password>.*?)\@(?P<host>.*?)\:(?P<port>\d+)\/(?P<db>.*?)$", os.environ.get("DATABASE_URL", "")).groups()
|
||||||
|
|||||||
Reference in New Issue
Block a user