Skip to content

Commit

Permalink
Added coderrabbitai critical suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
areebahmeddd committed Nov 15, 2024
1 parent 17bfae0 commit 0bfd424
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,37 @@
},
"production": {
"scripts": {
"postdeploy": "python manage.py migrate && python manage.py load_redis_index"
"postdeploy": "python manage.py migrate --check && python manage.py migrate && python manage.py load_redis_index || echo 'Post-deploy failed' && exit 1"
},
"buildpacks": [
{
"url": "https://github.com/cyberdelia/heroku-geo-buildpack.git"
},
{
"url": "heroku/python"
}
],
"env": {
"DJANGO_SETTINGS_MODULE": {
"value": "config.settings.production"
},
"DATABASE_URL": {
"value": "${DATABASE_URL}"
"value": "${DATABASE_URL}",
"required": true
},
"REDIS_URL": {
"value": "${REDIS_URL}"
"value": "${REDIS_URL}",
"required": true
},
"CELERY_BROKER_URL": {
"value": "${CELERY_BROKER_URL}"
"value": "${CELERY_BROKER_URL}",
"required": true
},
"LD_LIBRARY_PATH": {
"value": "/app/lib"
},
"BUILD_WITH_GEO_LIBRARIES": {
"value": "1"
}
}
}
Expand Down

0 comments on commit 0bfd424

Please sign in to comment.