Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Removing psycopg2 from requirements.txt breaks Cloudfoundry deploys #85

Description

@toolness

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:

  1. A requirements.minimal.txt file that has the bare minimum requirements needed to run the app.
  2. 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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions