Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
warpapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
infrastruktur
warpapi
Commits
8d56baf4
Commit
8d56baf4
authored
5 years ago
by
Christian Elberfeld
Browse files
Options
Downloads
Patches
Plain Diff
gunicorn based docker
parent
0883bf1b
No related branches found
Branches containing commit
Tags
0.8
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-2
1 addition, 2 deletions
Dockerfile
entrypoint_prod.sh
+2
-1
2 additions, 1 deletion
entrypoint_prod.sh
warpapi/warpapi.py
+0
-2
0 additions, 2 deletions
warpapi/warpapi.py
warpapi/wsgi.py
+0
-4
0 additions, 4 deletions
warpapi/wsgi.py
with
3 additions
and
9 deletions
Dockerfile
+
1
−
2
View file @
8d56baf4
...
...
@@ -13,8 +13,7 @@ RUN pip3 install --upgrade pip
RUN
pip3
install
\
flask==1.0.2 \
flask_mqtt \
pytz \
uwsgi \
gunicorn \
--upgrade
# start Script
...
...
This diff is collapsed.
Click to expand it.
entrypoint_prod.sh
+
2
−
1
View file @
8d56baf4
...
...
@@ -5,4 +5,5 @@ export FLASK_APP=warpapi.py
export
FLASK_ENV
=
production
cd
/opt/warpapi/
uwsgi
--uid
=
www-data
--gid
=
www-data
--socket
0.0.0.0:5000
--protocol
=
http
-w
wsgi:app
exec
gunicorn
-b
:5000 warpapi:app
#flask run --host=0.0.0.0
This diff is collapsed.
Click to expand it.
warpapi/warpapi.py
+
0
−
2
View file @
8d56baf4
import
datetime
import
pytz
from
flask
import
Flask
from
flask
import
request
from
flask
import
redirect
...
...
This diff is collapsed.
Click to expand it.
warpapi/wsgi.py
deleted
100644 → 0
+
0
−
4
View file @
0883bf1b
from
warpapi
import
app
if
__name__
==
"
__main__
"
:
app
.
run
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment