Browse Source

get it prod ready

mm-logging
lza_menace 1 year ago
parent
commit
f5deb8ef41
  1. 8
      bin/prod
  2. 1
      requirements.txt
  3. 2
      wowstash/app.py

8
bin/prod

@ -0,0 +1,8 @@
#!/bin/bash
source .venv/bin/activate
export FLASK_APP=wowstash/app.py
export FLASK_SECRETS=config.py
export FLASK_DEBUG=0
export FLASK_ENV=production
gunicorn --bind 0.0.0.0:4000 "wowstash.app:app" -D --log-file ./data/app.log

1
requirements.txt

@ -11,3 +11,4 @@ qrcode
Pillow
docker
elasticsearch
gunicorn

2
wowstash/app.py

@ -1,6 +1,6 @@
from wowstash.factory import create_app
app = create_app()
if __name__ == '__main__':
app = create_app()
app.run()

Loading…
Cancel
Save