Commit aa09164e authored by okhin's avatar okhin 🚴

Upgrading the sqlite3 database on deployment

parent 5647ddd5
Pipeline #934 passed with stage
in 2 seconds
...@@ -6,6 +6,7 @@ job install: ...@@ -6,6 +6,7 @@ job install:
VIRTUALENV: /srv/piphone/sip-backend/.sip-backend_env VIRTUALENV: /srv/piphone/sip-backend/.sip-backend_env
script: script:
- rsync -ruvC ./ ${BASE_PATH} - rsync -ruvC ./ ${BASE_PATH}
- sqlite3 ${BASE_PATH}/../backend_sip.sqlite3 < database.sql
- source ${VIRTUALENV}/bin/activate - source ${VIRTUALENV}/bin/activate
- pip install --upgrade pip - pip install --upgrade pip
- pip install --upgrade -r requirements.txt - pip install --upgrade -r requirements.txt
...@@ -20,6 +21,7 @@ job production: ...@@ -20,6 +21,7 @@ job production:
VIRTUALENV: /srv/piphone/backend/backend-env VIRTUALENV: /srv/piphone/backend/backend-env
script: script:
- rsync -ruvC ./ ${BASE_PATH} - rsync -ruvC ./ ${BASE_PATH}
- sqlite3 ${BASE_PATH}/../backend_sip.sqlite3 < database.sql
- source ${VIRTUALENV}/bin/activate - source ${VIRTUALENV}/bin/activate
- pip install --upgrade pip - pip install --upgrade pip
- pip install --upgrade -r requirements.txt - pip install --upgrade -r requirements.txt
......
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