Skip to content

Commit

Permalink
Merge pull request #28 from Bubhux/development
Browse files Browse the repository at this point in the history
Test CI/CD Railway V.1.23
  • Loading branch information
Bubhux authored Jan 18, 2025
2 parents b0f45a1 + 0666edd commit fcb2b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ RUN /app/venv/bin/python manage.py migrate --settings=oc_lettings_site.settings
RUN /app/venv/bin/gunicorn --version

# Commande par défaut pour exécuter le serveur Django avec Gunicorn
CMD ["sh", "-c", "/app/venv/bin/gunicorn --bind 0.0.0.0:${PORT} --workers=4 oc_lettings_site.wsgi:application"]
CMD ["sh", "-c", "/app/venv/bin/gunicorn --bind 0.0.0.0:$PORT --workers=4 oc_lettings_site.wsgi:application"]
4 changes: 2 additions & 2 deletions railway.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"dockerfilePath": "Dockerfile"
},
"deploy": {
"startCommand": "sh -c 'gunicorn --workers=4 --bind 0.0.0.0:${PORT} oc_lettings_site.wsgi:application'",
"startCommand": "gunicorn --workers=4 --bind 0.0.0.0:$PORT oc_lettings_site.wsgi:application",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 5
}
}
}

0 comments on commit fcb2b37

Please sign in to comment.