mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 22:44:54 +03:00
Add railway json configuration
This commit is contained in:
parent
d5591682e4
commit
e8d42acdf0
15
{{cookiecutter.project_slug}}/railway.json
Normal file
15
{{cookiecutter.project_slug}}/railway.json
Normal 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
|
||||
}
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
# This file is expected by Heroku.
|
||||
# This file is expected by Heroku/Railway.
|
||||
|
||||
-r requirements/production.txt
|
||||
|
|
Loading…
Reference in New Issue
Block a user