Skip to content
Snippets Groups Projects

continuous deployment flask and react

Merged David Werner requested to merge feature/continuous-deploy into master
+ 6
0
@@ -19,9 +19,15 @@ flask:
- mv $hostkeyfile ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- scp $backendssh:continuous-deployment/services/server/flask-backend/gunicorn.log .
- ssh $backendssh "sudo /usr/bin/journalctl _SYSTEMD_UNIT=dumux-web-app.service" | tail -15000 | gzip -c > dumux-web-app.service.log.gz
- scp cd-setup/setup.sh $backendssh:setup-continuous-deployment.sh
- ssh $backendssh "chmod +x setup-continuous-deployment.sh && ./setup-continuous-deployment.sh"
- ssh-add -D # remove ssh-key from memory
artifacts:
# save previous logfiles, todo put in a different stage
- gunicorn.log
- dumux-web-app.service.log.gz
only:
- feature/continuous-deploy
- master
Loading