diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae649d890827627003a225045db872e6e0eb363e..2b31e3a2a7f640c1394181f787bad3e9fe0f389b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,10 +18,15 @@ pages-testing: pages-production: stage: deploy script: - - cat $configfileprod > ./config/config.js + script: - npm install + - npm run clean + - npm run build + - rm -rf ./built/views + - cp -R ./views ./built + - cat $configfileprod > ./built/config/config.js - "pm2 delete --silent project || :" - - pm2 start ./app.js --name=project + - pm2 start ./built/app.js --name=project - pm2 save tags: - production