Skip to content
Snippets Groups Projects
Commit 07560f75 authored by David Trattnig's avatar David Trattnig
Browse files

feat: run.gunicorn target for make

parent 46963c85
No related branches found
No related tags found
No related merge requests found
......@@ -43,4 +43,4 @@ RUN set -e \
# Start Service
EXPOSE 8008
ENTRYPOINT ["make"]
CMD ["run"]
CMD ["run.gunicorn"]
......@@ -10,11 +10,14 @@ help::
@echo " test - run test suite"
@echo " log - tail log file"
@echo " run - start app"
@echo " run.gunicorn - start app with gunicorn"
$(call docker_help)
# Settings
AURA_ENGINE_API_HOST ?= 127.0.0.1
AURA_ENGINE_API_PORT ?= 8008
AURA_ENGINE_API_CONFIG := ${CURDIR}/config/engine-api.docker.ini
AURA_LOGS := ${CURDIR}/logs
......@@ -33,7 +36,8 @@ DOCKER_RUN = @docker run \
init.app:: pyproject.toml
poetry install
cp -n config/sample.engine.ini config/engine.ini
cp -n config/sample.engine-api.ini config/engine-api.ini
cp -n config/sample/gunicorn/sample-production.gunicorn.conf.py config/gunicorn.conf.py
init.dev:: pyproject.toml
poetry install --with dev
......@@ -60,3 +64,7 @@ log::
run::
poetry run python3 -m aura_engine_api.app
run.gunicorn::
poetry run gunicorn -c config/gunicorn.conf.py aura_engine_api.app:app \
--bind $(AURA_ENGINE_API_HOST):$(AURA_ENGINE_API_PORT)
\ No newline at end of file
TZ=Europe/Vienna
AURA_ENGINE_API_LOG_LEVEL=info
AURA_ENGINE_API_DB_HOST=localhost
AURA_ENGINE_API_HOST=0.0.0.0
AURA_ENGINE_API_PORT=8008
AURA_ENGINE_API_DB_HOST=127.0.0.1
AURA_ENGINE_API_DB_NAME=aura_engine_api
AURA_ENGINE_API_DB_USER=aura_engine_api
AURA_ENGINE_API_DB_PASS=1234
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment