Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
c59411ad
Commit
c59411ad
authored
Mar 07, 2019
by
Okhin
Browse files
Updating the gitlab CI paths
parent
19ced1c8
Pipeline
#2460
passed with stages
in 3 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c59411ad
...
...
@@ -51,11 +51,11 @@ static build:
deploy preprod
:
variables
:
BASE_PATH
:
/srv/rp
2/src/
VIRTUALENV
:
/srv/rp
2/rp2-
env
BASE_PATH
:
/srv/rp
/rp-rp2
VIRTUALENV
:
/srv/rp
/
env
stage
:
deploy
script
:
-
rsync --exclude 'env' --exclude 'pip-cache' --exclude '.git' -r --chown g+rw ./ ${BASE_PATH}
-
rsync --exclude 'env' --exclude 'pip-cache' --exclude '.git' -r --chown
rp:www-data --chmod
g+
s
rw ./ ${BASE_PATH}
-
source ${VIRTUALENV}/bin/activate
-
pip install --upgrade pip
-
pip install --upgrade -r requirements.txt
...
...
@@ -64,7 +64,7 @@ deploy preprod:
-
echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py
-
echo "SITE_ID = 2" >> ${BASE_PATH}/project/settings/env.py
-
${BASE_PATH}/manage.py migrate
-
chmod g+rw ${BASE_PATH}/db.sqlite3
-
chmod g+
s
rw ${BASE_PATH}/db.sqlite3
-
touch ${BASE_PATH}/ready
only
:
-
rp2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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