You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
psycopg2 was removed from requirements.txt as part of #76, which was in one sense the right thing to do because the product is database agnostic... However, practically speaking, the Cloudfoundry deploy of autoapi uses postgres, so deploying to autoapi-ed.apps.cloud.gov broke when I used the latest master branch. I had to roll back to just before 6a80fbd in order to deploy successfully.
I'm not sure what to do about this. I'm wary of reverting 6a80fbd because it is true that the product should be database agnostic, but I'm not sure how else to ensure that the Cloudfoundry deploy can find psycopg2.
In some Heroku-based projects in the past, I've actually had two separate requirements files:
A requirements.minimal.txt file that has the bare minimum requirements needed to run the app.
A requirements.txt file that includes all deployment-specific requirements such as psycopg2, newrelic, and so forth. It also includes a -r requirements.minimal.txt line so that all the minimal dependencies are included too.
Does this kind of solution seem okay @vrajmohan@catherinedevlin or is there some better solution I'm unaware of?
psycopg2 was removed from
requirements.txtas part of #76, which was in one sense the right thing to do because the product is database agnostic... However, practically speaking, the Cloudfoundry deploy of autoapi uses postgres, so deploying to autoapi-ed.apps.cloud.gov broke when I used the latest master branch. I had to roll back to just before 6a80fbd in order to deploy successfully.I'm not sure what to do about this. I'm wary of reverting 6a80fbd because it is true that the product should be database agnostic, but I'm not sure how else to ensure that the Cloudfoundry deploy can find psycopg2.
In some Heroku-based projects in the past, I've actually had two separate requirements files:
requirements.minimal.txtfile that has the bare minimum requirements needed to run the app.requirements.txtfile that includes all deployment-specific requirements such as psycopg2, newrelic, and so forth. It also includes a-r requirements.minimal.txtline so that all the minimal dependencies are included too.Does this kind of solution seem okay @vrajmohan @catherinedevlin or is there some better solution I'm unaware of?