mirror of
https://git.wownero.com/lza_menace/wowstash.git
synced 2024-08-15 00:33:15 +00:00
get it prod ready
This commit is contained in:
parent
ae98ed0004
commit
f5deb8ef41
3 changed files with 10 additions and 1 deletions
8
bin/prod
Executable file
8
bin/prod
Executable file
|
@ -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
|
|
@ -11,3 +11,4 @@ qrcode
|
||||||
Pillow
|
Pillow
|
||||||
docker
|
docker
|
||||||
elasticsearch
|
elasticsearch
|
||||||
|
gunicorn
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from wowstash.factory import create_app
|
from wowstash.factory import create_app
|
||||||
|
|
||||||
|
app = create_app()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = create_app()
|
|
||||||
app.run()
|
app.run()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue