Improved deployment.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good

This commit is contained in:
Tom Butcher 2025-12-29 00:55:26 +00:00
parent 164353d071
commit dc7889cc6a
2 changed files with 4 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -36,6 +36,7 @@ pipeline {
nodejs(nodeJSInstallationName: 'Node23') {
sh '''
export NODE_ENV=test
export SESSION_SECRET=test-session-secret-for-testing-only
yarn test
'''
}
@ -57,9 +58,9 @@ pipeline {
cleanRemote: false,
excludes: 'node_modules/**',
execCommand: '''
cd /opt/farmcontrol-api
cd /home/farmcontrol/farmcontrol-api
yarn install --production
pm2 restart ecosystem.config.js --env production || pm2 start ecosystem.config.js --env production
sudo systemctl restart farmcontrol-api
''',
execTimeout: 120000,
flatten: false,

View File

@ -55,6 +55,7 @@
},
"auth": {
"enabled": false,
"sessionSecret": "test-session-secret-for-testing-only",
"keycloak": {
"url": "http://localhost:8080",
"realm": "test",