Compare commits
2 Commits
28c94159b4
...
dc7889cc6a
| Author | SHA1 | Date | |
|---|---|---|---|
| dc7889cc6a | |||
| 164353d071 |
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -36,6 +36,7 @@ pipeline {
|
|||||||
nodejs(nodeJSInstallationName: 'Node23') {
|
nodejs(nodeJSInstallationName: 'Node23') {
|
||||||
sh '''
|
sh '''
|
||||||
export NODE_ENV=test
|
export NODE_ENV=test
|
||||||
|
export SESSION_SECRET=test-session-secret-for-testing-only
|
||||||
yarn test
|
yarn test
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
@ -57,9 +58,9 @@ pipeline {
|
|||||||
cleanRemote: false,
|
cleanRemote: false,
|
||||||
excludes: 'node_modules/**',
|
excludes: 'node_modules/**',
|
||||||
execCommand: '''
|
execCommand: '''
|
||||||
cd /opt/farmcontrol-api
|
cd /home/farmcontrol/farmcontrol-api
|
||||||
yarn install --production
|
yarn install --production
|
||||||
pm2 restart ecosystem.config.js --env production || pm2 start ecosystem.config.js --env production
|
sudo systemctl restart farmcontrol-api
|
||||||
''',
|
''',
|
||||||
execTimeout: 120000,
|
execTimeout: 120000,
|
||||||
flatten: false,
|
flatten: false,
|
||||||
|
|||||||
@ -55,6 +55,7 @@
|
|||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
|
"sessionSecret": "test-session-secret-for-testing-only",
|
||||||
"keycloak": {
|
"keycloak": {
|
||||||
"url": "http://localhost:8080",
|
"url": "http://localhost:8080",
|
||||||
"realm": "test",
|
"realm": "test",
|
||||||
|
|||||||
12211
package-lock.json
generated
12211
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user