Swapped to sh

Sorry for messy commits DNI
This commit is contained in:
benarc 2023-11-14 14:18:44 +00:00
commit eae8550a5f

View file

@ -10,10 +10,11 @@
# Installing regtest # Installing regtest
get the regtest enviroment ready get the regtest enviroment ready
```console ```sh
# Install docker https://docs.docker.com/engine/install/ # Install docker https://docs.docker.com/engine/install/
# Make sure your user has permission to use docker "sudo usermod -aG docker ${USER}" then reboot # Make sure your user has permission to use docker 'sudo usermod -aG docker ${USER}' then reboot
# Stop/start docker "sudo systemctl stop docker" "sudo systemctl start docker" # Stop/start docker 'sudo systemctl stop docker' 'sudo systemctl start docker'
sudo apt install jq sudo apt install jq
git clone https://github.com/lnbits/lnbits.git git clone https://github.com/lnbits/lnbits.git
cd lnbits cd lnbits
@ -28,7 +29,7 @@ sudo chown -R $USER ./data # Give the data file permissions for user
# Running LNbits on regtest # Running LNbits on regtest
add this ENV variables to your `.env` file add this ENV variables to your `.env` file
```console ```sh
DEBUG=true DEBUG=true
# LND # LND
@ -50,7 +51,7 @@ make dev
``` ```
# testing # testing
```console ```sh
chmod +x ./tests chmod +x ./tests
./tests ./tests
# short answer :) # short answer :)
@ -58,7 +59,7 @@ make dev
``` ```
usage of the `bitcoin-cli-sim`, `lightning-cli-sim` and `lncli-sim` aliases usage of the `bitcoin-cli-sim`, `lightning-cli-sim` and `lncli-sim` aliases
```console ```sh
cd ~/lnbits/docker cd ~/lnbits/docker
source docker-scripts.sh source docker-scripts.sh
# use bitcoin core, mine a block # use bitcoin core, mine a block
@ -81,7 +82,7 @@ lncli-sim 2 listpeers
* lnbits: http://localhost:5001/ * lnbits: http://localhost:5001/
# debugging docker logs # debugging docker logs
```console ```sh
docker logs lnbits-legend-lnbits-1 -f docker logs lnbits-legend-lnbits-1 -f
docker logs lnbits-legend-boltz-1 -f docker logs lnbits-legend-boltz-1 -f
docker logs lnbits-legend-clightning-1-1 -f docker logs lnbits-legend-clightning-1-1 -f