mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-12 09:51:06 +02:00
added directions for cache (#2197)
--------- Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
parent
4e9c992a91
commit
bd143f5c14
@ -65,17 +65,31 @@ poetry install --only main
|
|||||||
# Install nix. If you have installed via another manager, remove and use this install (from https://nixos.org/download)
|
# Install nix. If you have installed via another manager, remove and use this install (from https://nixos.org/download)
|
||||||
sh <(curl -L https://nixos.org/nix/install) --daemon
|
sh <(curl -L https://nixos.org/nix/install) --daemon
|
||||||
|
|
||||||
|
# Enable nix-command and flakes experimental features for nix:
|
||||||
|
echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf
|
||||||
|
|
||||||
|
# Add cachix for cached binaries
|
||||||
|
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||||
|
cachix use lnbits
|
||||||
|
|
||||||
# Clone and build LNbits
|
# Clone and build LNbits
|
||||||
git clone https://github.com/lnbits/lnbits.git
|
git clone https://github.com/lnbits/lnbits.git
|
||||||
cd lnbits
|
cd lnbits
|
||||||
nix build .#lnbits
|
nix build
|
||||||
mkdir data
|
|
||||||
|
|
||||||
|
mkdir data
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Running the server
|
#### Running the server
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
nix run
|
||||||
|
```
|
||||||
|
|
||||||
|
Ideally you would set the environment via the `.env` file,
|
||||||
|
but you can also set the env variables or pass command line arguments:
|
||||||
|
|
||||||
|
``` sh
|
||||||
# .env variables are currently passed when running, but LNbits can be managed with the admin UI.
|
# .env variables are currently passed when running, but LNbits can be managed with the admin UI.
|
||||||
LNBITS_ADMIN_UI=true ./result/bin/lnbits --port 9000
|
LNBITS_ADMIN_UI=true ./result/bin/lnbits --port 9000
|
||||||
|
|
||||||
@ -83,7 +97,6 @@ LNBITS_ADMIN_UI=true ./result/bin/lnbits --port 9000
|
|||||||
SUPER_USER=be54db7f245346c8833eaa430e1e0405 LNBITS_ADMIN_UI=true ./result/bin/lnbits --port 9000
|
SUPER_USER=be54db7f245346c8833eaa430e1e0405 LNBITS_ADMIN_UI=true ./result/bin/lnbits --port 9000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Option 3: Docker
|
## Option 3: Docker
|
||||||
|
|
||||||
use latest version from docker hub
|
use latest version from docker hub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user