add onion script and update mgmt script
parent
2b0333bd3f
commit
46d76d1a52
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source .venv/bin/activate
|
||||||
|
export FLASK_APP=xmrnodes/app.py
|
||||||
|
export FLASK_SECRETS=config.py
|
||||||
|
export FLASK_DEBUG=0
|
||||||
|
export FLASK_ENV=production
|
||||||
|
|
||||||
|
# override
|
||||||
|
source .env
|
||||||
|
export SERVER_NAME=livk2fpdv4xjnjrbxfz2tw3ptogqacn2dwfzxbxr3srinryxrcewemid.onion
|
||||||
|
export BASE=./data/gunicorn
|
||||||
|
mkdir -p $BASE
|
||||||
|
gunicorn \
|
||||||
|
--bind 127.0.0.1:4001 "xmrnodes.app:app" \
|
||||||
|
--daemon \
|
||||||
|
--log-file $BASE/onion-gunicorn.log \
|
||||||
|
--pid $BASE/onion-gunicorn.pid \
|
||||||
|
--reload
|
Loading…
Reference in New Issue