add onion script and update mgmt script

main
lza_menace 1 year ago
parent 2b0333bd3f
commit 46d76d1a52

@ -22,6 +22,7 @@ then
--daemon \
--log-file $BASE/gunicorn.log \
--pid $BASE/gunicorn.pid \
--workers 3 \
--reload
sleep 2
echo "Started gunicorn on 127.0.0.1:4000 with pid $(cat $BASE/gunicorn.pid)"

@ -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…
Cancel
Save