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
465a974b
Commit
465a974b
authored
Oct 04, 2017
by
okhin
🚴
Browse files
Adding more stuff to the deploy jobs
parent
a81fcdee
Pipeline
#1316
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
465a974b
...
...
@@ -4,9 +4,14 @@ stages:
deploy preprod
:
variables
:
BASE_PATH
:
/srv/generateur-slogans
PORT
:
8080
stage
:
deploy
tags
:
[
preprod
]
script
:
-
rsync -ruvC ./ $BASE_PATH
-
cd $BASE_PATH
-
echo "{'port'
:
'
${PORT}'
}
"
>
config.json
-
npm
install
-
pm2
restart
srv.js
only:
-
master
README.md
View file @
465a974b
...
...
@@ -4,13 +4,16 @@ This project is the slogan generator used by LQDN for the donation compaign of y
## Installation
The back-end server require node.js (v6.11.X), npm and cairo. Here is the installation command for debian based systems:
The back-end server require node.js (v6.11.X), npm and cairo. To daemonize the backend, we're going to use pm2.
Here is the installation command for debian based systems:
```
sh
apt
install
nodejs libcairo2-dev libjpeg62-turbo-dev libpango1.0-dev libgif-dev build-essential g++
```
```
sh
sudo
npm
install
-g
pm2
cp
config.json.default config.json
npm
install
```
...
...
@@ -18,5 +21,5 @@ npm install
## Run
```
sh
npm run
sudo
pm2 start srv.js
```
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