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
71156f75
Commit
71156f75
authored
Aug 29, 2019
by
Zac Wood
Browse files
revert my anger
parent
3e1c4d2f
Pipeline
#4614
passed with stages
in 1 minute and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
71156f75
...
...
@@ -17,7 +17,7 @@ before_script:
-
nohup redis-server &
-
cd go/
-
export GO_ENV="test"
-
export GO_SECRET_KEY=
"secret"
-
export GO_SECRET_KEY=
$(python -c 'import random; import string; print("".join([random.SystemRandom().choice("{}{}{}".format(string.ascii_letters, string.digits, string.punctuation)) for i in range(50)]))')
-
export GO_DB_NAME="go"
-
export GO_DB_USER="root"
-
export GO_DB_PASSWORD="root"
...
...
go/settings/settings.py
View file @
71156f75
...
...
@@ -21,7 +21,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# http://www.miniwebtool.com/django-secret-key-generator/
# export SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
# assert 'SECRET_KEY' in os.environ, 'You need to set the SECRET_KEY enviornment variable!'
SECRET_KEY
=
"if this fails i'm deleting the project"
#
os.environ['GO_SECRET_KEY']
SECRET_KEY
=
os
.
environ
[
'GO_SECRET_KEY'
]
# Peoplefinder API
PF_URL
=
"https://api.srct.gmu.edu/peoplefinder/v1/"
...
...
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