hypercorn -k trio
This commit is contained in:
parent
c3ded859df
commit
e408febf97
|
@ -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
|
||||
|
|
1
Pipfile
1
Pipfile
|
@ -23,6 +23,7 @@ typing-extensions = "*"
|
|||
httpx = "*"
|
||||
quart-trio = "*"
|
||||
trio = "*"
|
||||
hypercorn = {extras = ["trio"], version = "*"}
|
||||
|
||||
[dev-packages]
|
||||
black = "==20.8b1"
|
||||
|
|
4
Pipfile.lock
generated
4
Pipfile.lock
generated
|
@ -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": {
|
||||
|
|
2
Procfile
2
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()'
|
||||
|
|
|
@ -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/.
|
||||
|
|
Loading…
Reference in New Issue
Block a user