From e593aba8e2e8ebc86303a0a18b9d8fb4e29fc326 Mon Sep 17 00:00:00 2001 From: Francisco Macedo Date: Mon, 25 Mar 2024 12:27:55 +0000 Subject: [PATCH] add heroku configuration --- Procfile | 2 ++ app.json | 43 +++++++++++++++++++++++++++++++++++++++++++ runtime.txt | 1 + 3 files changed, 46 insertions(+) create mode 100644 Procfile create mode 100644 app.json create mode 100644 runtime.txt diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..fc92628 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +release: python manage.py migrate +web: gunicorn dm_regional_site.wsgi \ No newline at end of file diff --git a/app.json b/app.json new file mode 100644 index 0000000..e17f4e0 --- /dev/null +++ b/app.json @@ -0,0 +1,43 @@ +{ + "name": "CS Demand Model Regional", + "keywords": [ + "Social Finance", + "Demand Model", + "Children Services" + ], + "repository": "https://github.com/SocialFinanceDigitalLabs/cs-demand-model-regional", + "success_url": "/", + "env": { + "DJANGO_SECRET_KEY": { + "description": "The Django SECRET_KEY - do not share this value", + "generator": "secret" + }, + "DISABLE_POETRY_CREATE_RUNTIME_FILE": { + "description": "We provide a specific python version in runtime.txt.", + "value": "1" + }, + "POETRY_VERSION": { + "description": "poetry version", + "required": true, + "value": "1.2.2" + } + }, + "formation": { + "worker": { + "quantity": 1 + }, + "web": { + "quantity": 1 + } + }, + "addons": ["heroku-postgresql"], + "buildpacks": [ + { + "url": "https://github.com/SocialFinanceDigitalLabs/python-poetry-buildpack.git" + }, + { + "url": "heroku/python" + } + ], + "stack": "heroku-22" + } \ No newline at end of file diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..dfe813b --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.11.6 \ No newline at end of file