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
d493c6a7
Prev
Next
Show latest version
1 file
+
7
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d493c6a7
mistake in environment variable?
· d493c6a7
David Werner
authored
3 years ago
cleanup added gunicorn-logfile
cd-setup/setup.sh
+
7
−
7
Options
@@ -3,7 +3,9 @@
set
-eu
# exit on error
set
-x
# show commands
# not implemented is to have backup/restore of the previous installation on fail of setup
rm
-rf
continuous-deployment
||
true
git clone https://git.iws.uni-stuttgart.de/dumux-appl/dumux-web-app.git continuous-deployment
cd
continuous-deployment
@@ -20,23 +22,21 @@ python -m pip install --upgrade pip
pip
install
-r
requirements.txt
pip
install
gunicorn
#
install script which is run by systemctl; code is not yet in the master; thus now emitted from this
script
#
emit gunicorn-script used by systemd
script
cat
<<-
EOF
| tee
gunicorn.cmdline.sh
cat
<<-
EOF
>
gunicorn.cmdline.sh
#!/bin/bash
source ./venv/bin/activate
which gunicorn
export FLASK_ENV=production
export FLASK_ENV=wsgi.py
#
export FLASK_ENV=wsgi.py
export FLASK_APP_BASE_URL=/web-app
export FLASK_APP_SIMULATIONS_CONFIG=simulations.json
gunicorn -b "0.0.0.0:5000" --proxy-allow-from="*" --log-level debug --log-file=- --worker-tmp-dir /dev/shm --worker-class eventlet --workers 1 --threads 2 wsgi:application
# have log file and stdout for journald
gunicorn -b "0.0.0.0:5000" --proxy-allow-from="*" --log-level debug --log-file=- --worker-tmp-dir /dev/shm --worker-class eventlet --workers 1 --threads 2 wsgi:application | tee gunicorn.log
#./venv/bin/gunicorn -b "0.0.0.0:5000" --proxy-allow-from="127.0.0.1,129.69.98.210" --log-level debug --log-file=- "--worker-tmp-dir" "/dev/shm" "--worker -class" "eventlet" "--workers" "1" "--threads" "2" "wsgi:application"
EOF
chmod
+x gunicorn.cmdline.sh
Loading