From 53ab82dbd45483656f2c4c9d76b016a47975c38b Mon Sep 17 00:00:00 2001 From: Tomasz Knapik Date: Tue, 26 Nov 2024 09:54:40 +0000 Subject: [PATCH] Add heroku.yml --- Dockerfile | 1 + heroku.yml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 heroku.yml diff --git a/Dockerfile b/Dockerfile index 97feec7..2ca7ea6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ ARG IMAGE_TAG=latest FROM "$IMAGE":"$IMAGE_TAG" +ENV WORKER_CLASS=sync ENV NPM_BUILD_COMMAND=compile ARG BUILD_VERSION ENV BUILD_VERSION="$BUILD_VERSION" diff --git a/heroku.yml b/heroku.yml new file mode 100644 index 0000000..8d5645c --- /dev/null +++ b/heroku.yml @@ -0,0 +1,9 @@ +build: + config: + IMAGE_TAG: "custom-port" + docker: + web: Dockerfile +release: + image: web + command: + - poetry run python /app/manage.py check --deploy && poetry run python /app/manage.py createcachetable && poetry run python /app/manage.py migrate --noinput \ No newline at end of file