Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
generateur-slogans
Commits
6e899019
Commit
6e899019
authored
Nov 14, 2017
by
okhin
🚴
Browse files
Adding a production deployment
parent
9a129ce5
Pipeline
#1611
passed with stage
in 1 minute and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6e899019
...
...
@@ -16,3 +16,20 @@ deploy preprod:
-
sudo /usr/bin/pm2 show slogan
only
:
-
master
deploy prod
:
variables
:
BASE_PATH
:
/srv/soutien/generateur-slogans
stage
:
deploy
tags
:
[
prod
]
script
:
-
rsync -ruvC ./ $BASE_PATH
-
cd $BASE_PATH
-
rm -rf node_modules/
-
npm install
-
cp config.json.default config.json
-
sudo /usr/bin/pm2 restart slogan
-
sudo /usr/bin/pm2 show slogan
only
:
-
master
Write
Preview
Supports
Markdown
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