basicswap/doc/upgrade.md

44 lines
1,020 B
Markdown
Raw Normal View History

## Update basicswap version
### Docker
Update only the code:
basicswap]$ git pull
$ cd docker
$ docker-compose build
$ export COINDATA_PATH=[PATH_TO]
$ docker-compose up
If the dependencies and db format have changed the container must be built with `--no-cache` and the db file moved to a backup.
basicswap]$ git pull
$ cd docker
$ docker-compose build --no-cache
$ export COINDATA_PATH=[PATH_TO]
$ mv --backup=numbered $COINDATA_PATH/db.sqlite $COINDATA_PATH/db_bkp.sqlite
$ docker-compose up
2020-12-31 08:01:01 +00:00
#### Update core versions
2020-12-31 08:01:01 +00:00
After updating the code and rebuilding the container:
basicswap/docker]$ docker run \
-t --name swap_prepare -v $COINDATA_PATH:/coindata i_swapclient \
basicswap-prepare --datadir=/coindata --preparebinonly --withcoins=monero --withoutcoins=litecoin
docker rm swap_prepare
## If installed through pip:
cd basicswap
git pull
pip3 install .
2020-12-31 08:01:01 +00:00
#### Update core versions
basicswap-prepare -preparebinonly