Commit 1b8e73e5 authored by mdsecurity's avatar mdsecurity

secret key is now generated properly

parent ac440fea
Pipeline #572 passed with stage
in 7 minutes and 44 seconds
......@@ -12,11 +12,11 @@ services:
- db
environment:
- debug=True
- host=*
- host=*
- email_domain=@masonlive.gmu.edu
- cas_url=https://nanderson.me/cas/
- superuser=dhaynes3
- SECRET_KEY=much-secret
# - SECRET_KEY=much-secret
- DB_NAME=go
- DB_USER=go
- DB_PASSWORD=go
......
# export SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
until nc -z db 3306; do
echo "waiting for database to start..."
sleep 1
done
export SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
python go/manage.py flush --no-input
python go/manage.py makemigrations
python go/manage.py makemigrations go
......
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