Update installation.md

This commit is contained in:
Arc 2022-08-02 21:59:55 +01:00 committed by GitHub
parent 88ef3a38fc
commit 3b6c2b0103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,13 +18,20 @@ By default, LNbits will use SQLite as its database. You can also use PostgreSQL
git clone https://github.com/lnbits/lnbits-legend.git git clone https://github.com/lnbits/lnbits-legend.git
cd lnbits-legend/ cd lnbits-legend/
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.9
curl -sSL https://install.python-poetry.org | python3 - curl -sSL https://install.python-poetry.org | python3 -
export PATH="/home/ubuntu/.local/bin:$PATH" # or whatever is suggested in the poetry install notes printed to terminal
poetry env use python3.9 poetry env use python3.9
poetry install 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 # 'sudo nano .env' and set funding source
mkdir data && cp .env.example .env
``` ```
#### Running the server #### Running the server