From ffa3c3f6a671156290b349c5691686071f24a20e Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 4 Sep 2020 17:13:10 -0300 Subject: [PATCH] python -m lnbits --- docs/devs/installation.md | 2 +- docs/guide/installation.md | 2 +- main.py => lnbits/__main__.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename main.py => lnbits/__main__.py (100%) diff --git a/docs/devs/installation.md b/docs/devs/installation.md index 2a22f7e..c4aad25 100644 --- a/docs/devs/installation.md +++ b/docs/devs/installation.md @@ -45,7 +45,7 @@ Running the server LNbits uses [Flask][flask] as an application server. ```sh -$ pipenv run python main.py +$ pipenv run python -m lnbits ``` There is an environment variable called `FLASK_ENV` that has to be set to `development` diff --git a/docs/guide/installation.md b/docs/guide/installation.md index bb517c2..174e115 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -22,7 +22,7 @@ You will need to set the variables in `.env.example`, and rename the file to `.e Run the server: ```sh -(.venv) $ python main.py +(.venv) $ python -m lnbits ``` You might also need to install additional packages, depending on the [backend wallet](./wallets.md) you use. diff --git a/main.py b/lnbits/__main__.py similarity index 100% rename from main.py rename to lnbits/__main__.py