|
|
@@ -9,5 +9,25 @@ module.exports = {
|
|
|
script: 'yarn',
|
|
|
args: 'start'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+
|
|
|
+ // Deployment Configuration
|
|
|
+ deploy: {
|
|
|
+ prod: {
|
|
|
+ user: 'exploitation',
|
|
|
+ host: [''],
|
|
|
+ ref: 'origin/master',
|
|
|
+ repo: 'git@gitlab.2iopenservice.com:opentalent/admin.git',
|
|
|
+ path: '/var/opentalent/git/app',
|
|
|
+ 'post-deploy': 'yarn install && yarn build && pm2 start app'
|
|
|
+ },
|
|
|
+ preprod: {
|
|
|
+ user: 'exploitation',
|
|
|
+ host: ['preprod-v2'],
|
|
|
+ ref: 'origin/master',
|
|
|
+ repo: 'git@gitlab.2iopenservice.com:opentalent/admin.git',
|
|
|
+ path: '/var/opentalent/git/app',
|
|
|
+ 'post-deploy': 'yarn install && yarn build && pm2 start app'
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|