fix initadmin script

This commit is contained in:
virusdefender
2017-11-25 12:54:29 +08:00
parent cf40deb97c
commit 1f9eca8b7d
5 changed files with 45 additions and 58 deletions

View File

@@ -9,11 +9,9 @@ before_install:
- docker run -it -d -e POSTGRES_DB=onlinejudge -e POSTGRES_USER=onlinejudge -e POSTGRES_PASSWORD=onlinejudge -p 127.0.0.1:5433:5432 postgres:10
install:
- pip install -r deploy/requirements.txt
- mkdir log test_case upload
- cp oj/custom_settings.example.py oj/custom_settings.py
- echo "SECRET_KEY=\"`cat /dev/urandom | head -1 | md5sum | head -c 32`\"" >> oj/custom_settings.py
- python manage.py migrate
- python manage.py initadmin
script:
- docker ps -a
- flake8 .