fix up scripts
This commit is contained in:
parent
3674712998
commit
cede7269d0
17
README.md
17
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": "<user specific name>",
|
||||
"scan_from_height": <height>,
|
||||
"password": "<password>",
|
||||
"seed": "<seed phrase>"
|
||||
}
|
||||
docker-compose up -d
|
||||
```
|
||||
|
|
15
bin/prod
15
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)"
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue