Commit 625ba170 authored by Zack Wong's avatar Zack Wong
Browse files

fix testing db

parent 210190aa
......@@ -19,12 +19,13 @@ deploy_test:
tags:
- test
variables:
DB_ENGINE : "django.db.backends.sqlite3"
DB_NAME : os.path.join(ROOT_DIR, '.db', 'members.db')
DB_ENGINE : django.db.backends.sqlite3
DB_NAME : /var/www/test/$CI_COMMIT_REF_NAME/.db/members.db
script:
- echo "Deploy to test"
- rm -f /var/www/test/$CI_COMMIT_REF_NAME
- ln -srT ./ /var/www/test/$CI_COMMIT_REF_NAME
- mkdir .db
- envsubst < src/gms/settings_local.example.py > src/gms/settings_local.py
- python src/manage.py makemigrations
- python src/manage.py migrate --run-syncdb
......
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