Deploy it
- 1
Prepare the project
Add
gunicorntorequirements.txt, and add your gheima.ma address and your own domain toALLOWED_HOSTSandCSRF_TRUSTED_ORIGINS. - 2
Create a web service from the repository
Pick the repository and branch, and leave the build and start commands blank for Nixpacks to detect them. If
settings.pyhas noWSGI_APPLICATION, Gheima fills it in from the modulemanage.pypoints at. - 3
Connect a database
Create a managed Postgres database and link it to the service:
DATABASE_URL, theDB_*variables and thePG*variables are set for you. ReadDATABASE_URLinsettings.py, for example withdj-database-url, and set the release command topython manage.py migrate. - 4
Add your domain
Add the domain on the service, point its DNS at Gheima, and the HTTPS certificate is issued and renewed for you.