From cede7269d06e2f74b4ff8fada09f4af362dbb467 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 27 Sep 2020 05:50:25 -0700 Subject: [PATCH] fix up scripts --- README.md | 17 ++--------------- bin/prod | 15 ++++++++++++++- bin/prod-container | 8 -------- bin/setup | 5 ----- 4 files changed, 16 insertions(+), 29 deletions(-) delete mode 100755 bin/prod-container delete mode 100755 bin/setup diff --git a/README.md b/README.md index 215bf43..02c3266 100644 --- a/README.md +++ b/README.md @@ -2,21 +2,8 @@ A web wallet for noobs who can't use a CLI. -## Notes - - -``` -wownero-wallet-cli --generate-from-json e.json --restore-height 247969 --daemon-address node.suchwow.xyz:34568 --command version - -wownero-wallet-rpc --non-interactive --rpc-bind-port 8888 --daemon-address node.suchwow.xyz:34568 --wallet-file wer --rpc-login user1:mypass1 --password pass -``` +## Setup ``` -{ - "version": 1, - "filename": "", - "scan_from_height": , - "password": "", - "seed": "" -} +docker-compose up -d ``` diff --git a/bin/prod b/bin/prod index fc3f3f9..adbaa81 100755 --- a/bin/prod +++ b/bin/prod @@ -1,8 +1,21 @@ #!/bin/bash +BASE=data/gunicorn + 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 + +mkdir -p $BASE + +gunicorn \ + --bind 0.0.0.0:4001 "wowstash.app:app" \ + --daemon \ + --log-file $BASE/gunicorn.log \ + --pid $BASE/gunicorn.pid \ + --access-logfile $BASE/access.log \ + --reload + +echo "Starting gunicorn with pid $(cat ./data/gunicorn.pid)" diff --git a/bin/prod-container b/bin/prod-container deleted file mode 100755 index 4bd3aaa..0000000 --- a/bin/prod-container +++ /dev/null @@ -1,8 +0,0 @@ -#!/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:4001 "wowstash.app:app" diff --git a/bin/setup b/bin/setup deleted file mode 100755 index 8bb15f3..0000000 --- a/bin/setup +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -python3 -m venv .venv -source .venv/bin/activate -pip3 install -r requirements.txt