Verified Commit 601496a6 authored by David Haynes's avatar David Haynes 🙆

Configuration changes

- working on further parity between dev and prod
- settings file chosen based on env
parent 70fc955b
Pipeline #1697 failed with stages
in 1 minute and 28 seconds
......@@ -26,15 +26,15 @@ services:
- gonet
ports:
- '8000:8000'
command: /bin/bash ./startup.sh -python go/manage.py runserver 0.0.0.0:8000
command: /bin/bash ./startup.sh
volumes:
- .:/go
depends_on:
- db
environment:
- GO_ENV=dev
- GO_ALLOWED_HOSTS=*
- GO_EMAIL_DOMAIN=@masonlive.gmu.edu
- GO_CAS_URL=https://cas.srct.gmu.edu/
- GO_DB_NAME=go
- GO_DB_USER=go
- GO_DB_PASSWORD=go
......
......@@ -2,8 +2,13 @@
import os
import sys
if os.environ['GO_ENV'] == 'production':
settings = "settings.production"
else:
settings = "settings.local"
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.local")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings)
from django.core.management import execute_from_command_line
......
......@@ -169,7 +169,6 @@ AUTHENTICATION_BACKENDS = (
'cas.backends.CASBackend',
)
CAS_SERVER_URL = os.environ['GO_CAS_URL']
CAS_LOGOUT_COMPLETELY = True
CAS_PROVIDE_URL_TO_LOGOUT = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment