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 - +## Setup ``` -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 -``` - -``` -{ - "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