Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Dumux Web App
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
Dumux Web App
Merge requests
!38
continuous deployment flask and react
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
continuous deployment flask and react
feature/continuous-deploy
into
master
Overview
0
Commits
5
Pipelines
6
Changes
2
Merged
David Werner
requested to merge
feature/continuous-deploy
into
master
3 years ago
Overview
0
Commits
5
Pipelines
6
Changes
1
Expand
👍
0
👎
0
Merge request reports
Viewing commit
d783b103
Prev
Next
Show latest version
1 file
+
6
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d783b103
logfile handling
· d783b103
David Werner
authored
3 years ago
.gitlab-ci.yml
+
6
−
0
Options
@@ -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