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
785faa1f
Commit
785faa1f
authored
Mar 07, 2019
by
okhin
🚴
Browse files
Merge branch '7-gestion-des-droits-utilisateur-code-interface' into 'rp2'
Updating the gitlab CI paths Closes #7 See merge request
!8
parents
974d47c5
c59411ad
Pipeline
#2461
failed with stages
in 3 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
785faa1f
...
@@ -45,11 +45,11 @@ static build:
...
@@ -45,11 +45,11 @@ static build:
deploy preprod
:
deploy preprod
:
variables
:
variables
:
BASE_PATH
:
/srv/rp
2/src/
BASE_PATH
:
/srv/rp
/rp-rp2
VIRTUALENV
:
/srv/rp
2/rp2-
env
VIRTUALENV
:
/srv/rp
/
env
stage
:
deploy
stage
:
deploy
script
:
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
-
source ${VIRTUALENV}/bin/activate
-
pip install --upgrade pip
-
pip install --upgrade pip
-
pip install --upgrade -r requirements.txt
-
pip install --upgrade -r requirements.txt
...
@@ -58,7 +58,7 @@ deploy preprod:
...
@@ -58,7 +58,7 @@ deploy preprod:
-
echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py
-
echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py
-
echo "SITE_ID = 2" >> ${BASE_PATH}/project/settings/env.py
-
echo "SITE_ID = 2" >> ${BASE_PATH}/project/settings/env.py
-
${BASE_PATH}/manage.py migrate
-
${BASE_PATH}/manage.py migrate
-
chmod g+rw ${BASE_PATH}/db.sqlite3
-
chmod g+
s
rw ${BASE_PATH}/db.sqlite3
-
touch ${BASE_PATH}/ready
-
touch ${BASE_PATH}/ready
only
:
only
:
-
rp2
-
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