Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
601496a6
Verified
Commit
601496a6
authored
Oct 18, 2017
by
David Haynes
🙆
Browse files
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker-compose.yml
View file @
601496a6
...
...
@@ -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
...
...
go/manage.py
View file @
601496a6
...
...
@@ -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
...
...
go/settings/base.py
View file @
601496a6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment