mirror of https://github.com/lukechilds/lnbits.git
Browse Source
It is now up to the user to install these (or other) for production deployment. More info: https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/#run-with-a-production-serveraiosqlite
11 changed files with 66 additions and 90 deletions
@ -1,8 +1,9 @@ |
|||
FROM python:3.7 |
|||
FROM python:3.8-slim |
|||
|
|||
WORKDIR /app |
|||
COPY requirements.txt /app/ |
|||
RUN pip install --no-cache-dir -q -r requirements.txt |
|||
RUN pip install --no-cache-dir -q gunicorn gevent |
|||
COPY . /app |
|||
|
|||
EXPOSE 5000 |
|||
|
@ -0,0 +1,34 @@ |
|||
--- |
|||
layout: default |
|||
title: Basic installation |
|||
nav_order: 2 |
|||
--- |
|||
|
|||
|
|||
Basic installation |
|||
================== |
|||
|
|||
Download this repo and install the dependencies: |
|||
|
|||
```sh |
|||
$ git clone https://github.com/lnbits/lnbits.git |
|||
$ python3 -m venv .venv |
|||
$ source ./.venv/bin/activate |
|||
(.venv) $ pip install -r requirements.txt |
|||
``` |
|||
|
|||
You will need to set the variables in `.env.example`, and rename the file to `.env`. |
|||
|
|||
Run the migrations and the Flask server: |
|||
|
|||
```sh |
|||
(.venv) $ flask migrate |
|||
(.venv) $ flask run |
|||
``` |
|||
|
|||
You might also need to install additional packages, depending on the [backend wallet](./wallets.md) you use. |
|||
E.g. when you want to use LND you have to run: |
|||
|
|||
```sh |
|||
(.venv) $ pip install lnd-grpc |
|||
``` |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"scripts": { |
|||
"dokku": { |
|||
"predeploy": "flask migrate" |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue