diff --git a/Dockerfile b/Dockerfile index f959cbd..9bd165a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ FROM python:3.7-slim WORKDIR /app COPY requirements.txt /app/ RUN pip install --no-cache-dir -q -r requirements.txt -RUN pip install --no-cache-dir -q hypercorn COPY . /app EXPOSE 5000 diff --git a/Pipfile b/Pipfile index b174ac3..ca5cfe0 100644 --- a/Pipfile +++ b/Pipfile @@ -23,6 +23,7 @@ typing-extensions = "*" httpx = "*" quart-trio = "*" trio = "*" +hypercorn = {extras = ["trio"], version = "*"} [dev-packages] black = "==20.8b1" diff --git a/Pipfile.lock b/Pipfile.lock index fff2e83..2358d8a 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "894690d75d6558f0aa98eed8c5f54bdfe79c2a1bfd736507f930bf07c775a89e" + "sha256": "76a3823f58d720ea680fdcd246f2a8b5fa16ce0a87a650e5e9fff5559dca7309" }, "pipfile-spec": 6, "requires": { @@ -184,7 +184,7 @@ "sha256:6540faeba9dd44f7e74c7cc1beae3a438a7efb5f77323d1199457da46d32c2c2", "sha256:b5c479023757e279f954b46a4ec9dd85e58a2bcbf4d959d5601cbced593e711d" ], - "markers": "python_version >= '3.7'", + "index": "pypi", "version": "==0.11.0" }, "hyperframe": { diff --git a/Procfile b/Procfile index 1274b8d..c0ca488 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: hypercorn --bind 0.0.0.0:5000 'lnbits.app:create_app()' +web: hypercorn -k trio --bind 0.0.0.0:5000 'lnbits.app:create_app()' diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 461bfef..b61ccf9 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -18,7 +18,7 @@ python3 -m venv venv cp .env.example .env ./venv/bin/quart assets ./venv/bin/quart migrate -./venv/bin/hypercorn --bind 0.0.0.0:5000 'lnbits.app:create_app()' +./venv/bin/hypercorn -k trio --bind 0.0.0.0:5000 'lnbits.app:create_app()' ``` No you can visit your LNbits at http://localhost:5000/.