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
UCC
uccportal
Commits
625ba170
Commit
625ba170
authored
Feb 24, 2019
by
Zack Wong
Browse files
fix testing db
parent
210190aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
625ba170
...
...
@@ -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
...
...
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