From ee1cc28187848aa2e3f833260005d9ab6a137537 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Wed, 27 Jul 2022 15:01:23 +0100 Subject: [PATCH] Update installation.md --- docs/guide/installation.md | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 591516f1a..380c756d7 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -12,9 +12,28 @@ You can choose between two python package managers, `venv` and `pipenv`. Both ar By default, LNbits will use SQLite as its database. You can also use PostgreSQL which is recommended for applications with a high load (see guide below). -## Option 1: pipenv +## Option 1: poetry -You can also use Pipenv to manage your python packages. +```sh +git clone https://github.com/lnbits/lnbits-legend.git +cd lnbits-legend/ + +curl -sSL https://install.python-poetry.org | python3 - +poetry install + +# You may need to install python 3.9, update your python following this guide https://linuxize.com/post/how-to-install-python-3-9-on-ubuntu-20-04/ + + mkdir data && cp .env.example .env +``` + +#### Running the server + +```sh +poetry run lnbits +# To change port/host pass 'poetry run lnbits --port 9000 --host 0.0.0.0' +``` + +## Option 2: pipenv ```sh git clone https://github.com/lnbits/lnbits-legend.git @@ -44,7 +63,7 @@ pipenv run python -m uvicorn lnbits.__main__:app --port 5000 --host 0.0.0.0 Add the flag `--reload` for development (includes hot-reload). -## Option 2: venv +## Option 3: venv Download this repo and install the dependencies: