Skip to content

Commit

Permalink
feat: reduce memory usage by switching to gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
steve192 committed Jan 24, 2022
1 parent d0b6620 commit 906e66a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask~=2.0
recipe-scrapers~=13.12
uWSGI~=2.0.20
gunicorn~=20.1.0
3 changes: 2 additions & 1 deletion start.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env sh
uwsgi --http :9090 --wsgi-file src/app.py --uid=www-data --gid=www-data
gunicorn -b 0.0.0.0:9090 --threads 1 --preload --workers 1 src.app:app
#uwsgi --http :9090 --wsgi-file src/app.py --uid=www-data --gid=www-data

0 comments on commit 906e66a

Please sign in to comment.