Commit 535a1164 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

Merge branch 'move_prod'

Adapted typescript, cleandd some branching chaos after previos tries?
parents fb677ab3 1d8789bc
Pipeline #4797 failed with stage
in 6 seconds
...@@ -34,6 +34,25 @@ deploy-master: ...@@ -34,6 +34,25 @@ deploy-master:
- pm2 start ./built/app.js --name=account - pm2 start ./built/app.js --name=account
- pm2 save - pm2 save
deploy-master:
stage: deploy
script:
- npm install
- npm run clean
- npm run build
- rm -rf ./built/public/default
- rm -rf ./built/routes/cert
- rm -rf ./built/views
- cp -R ./public/default ./built/public
- cp -R ./routes/cert ./built/routes
- cp -R ./views ./built
- cat $configfileprod > ./built/config/config.js
- cat $cert > ./built/routes/cert/cert.pem
- cat $certidp > ./built/routes/cert/cert_idp.pem
- cat $key > ./built/routes/cert/key.pem
- "pm2 delete --silent account || :"
- pm2 start ./built/app.js --name=account
- pm2 save
tags: tags:
- production - production
only: only:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment