fix up scripts

This commit is contained in:
lza_menace 2020-09-27 05:50:25 -07:00
parent 3674712998
commit cede7269d0
4 changed files with 16 additions and 29 deletions

View file

@ -2,21 +2,8 @@
A web wallet for noobs who can't use a CLI. 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 docker-compose up -d
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": "<user specific name>",
"scan_from_height": <height>,
"password": "<password>",
"seed": "<seed phrase>"
}
``` ```

View file

@ -1,8 +1,21 @@
#!/bin/bash #!/bin/bash
BASE=data/gunicorn
source .venv/bin/activate source .venv/bin/activate
export FLASK_APP=wowstash/app.py export FLASK_APP=wowstash/app.py
export FLASK_SECRETS=config.py export FLASK_SECRETS=config.py
export FLASK_DEBUG=0 export FLASK_DEBUG=0
export FLASK_ENV=production 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)"

View file

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

View file

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