mirror of
https://github.com/nikdoof/simple-webfinger.git
synced 2025-12-13 10:22:15 +00:00
Fix Gunicorn config in Docker
This commit is contained in:
@@ -31,4 +31,4 @@ COPY --from=builder /runtime /usr/local
|
|||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8000/tcp
|
EXPOSE 8000/tcp
|
||||||
CMD ["/usr/local/bin/gunicorn", "simple_webfinger.app:create_app()"]
|
CMD ["/usr/local/bin/gunicorn", "simple_webfinger.app:create_app()", "-b", "0.0.0.0:8000"]
|
||||||
2
Makefile
2
Makefile
@@ -11,7 +11,7 @@ lint: .venv
|
|||||||
python3 -m poetry run ruff check --output-format=github --target-version=py37 .
|
python3 -m poetry run ruff check --output-format=github --target-version=py37 .
|
||||||
|
|
||||||
serve-uwsgi:
|
serve-uwsgi:
|
||||||
SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" python3 -m poetry run uwsgi -w "simple_webfinger.app:create_app()" --master --http 0.0.0.0:8000
|
SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" python3 -m poetry run gunicorn "simple_webfinger.app:create_app()"
|
||||||
|
|
||||||
serve:
|
serve:
|
||||||
DEBUG_METRICS=1 SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" FLASK_DEBUG=1 FLASK_APP="simple_webfinger.app:create_app()" python3 -m poetry run flask run
|
DEBUG_METRICS=1 SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" FLASK_DEBUG=1 FLASK_APP="simple_webfinger.app:create_app()" python3 -m poetry run flask run
|
||||||
|
|||||||
Reference in New Issue
Block a user