fix up scripts

mm-logging
lza_menace 4 years ago
parent 3674712998
commit cede7269d0

@ -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": "<user specific name>",
"scan_from_height": <height>,
"password": "<password>",
"seed": "<seed phrase>"
}
docker-compose up -d
```

@ -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)"

@ -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"

@ -1,5 +0,0 @@
#!/bin/bash
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt