Add gunicorn and railway setup

This commit is contained in:
Piotr Szkudlarek 2024-01-15 00:50:31 +01:00
parent 8715bffbe4
commit a9b193bd39
2 changed files with 13 additions and 0 deletions

11
railway.json Normal file
View File

@ -0,0 +1,11 @@
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn mysite.wsgi",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}

View File

@ -29,6 +29,8 @@ exceptiongroup==1.1.3
executing==2.0.0 executing==2.0.0
fastjsonschema==2.19.0 fastjsonschema==2.19.0
fqdn==1.5.1 fqdn==1.5.1
gunicorn==21.2.0
idna==2.10
ipykernel==6.25.2 ipykernel==6.25.2
ipython==8.16.1 ipython==8.16.1
ipywidgets==8.1.1 ipywidgets==8.1.1