Add railway json configuration

This commit is contained in:
Lincoln Ho 2023-10-27 22:23:45 +01:00 committed by GitHub
parent d5591682e4
commit e8d42acdf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
{%- if cookiecutter.use_async == 'y' %}
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn config.asgi -k uvicorn.workers.UvicornWorker",
{%- else %}
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn config.wsgi",
{%- endif %}
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}

View File

@ -1,3 +1,3 @@
# This file is expected by Heroku.
# This file is expected by Heroku/Railway.
-r requirements/production.txt