Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Don't assume the app is in /app, expose env variables to subsequent buildpack #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Photonios
Copy link

@Photonios Photonios commented Feb 3, 2018

  • Don't assume the root is going to be /app. There are some buildpacks out there that make other buildpacks run in subdirectories and this assumption breaks them.

  • Expose environment variables to subsequent buildpacks (such as the Python one) so that they can also read them.

This seems to fix: #37 #39 #31

It might be a good idea to also pull in: TrailStash@5ae45e5

To fix support for heroku-16.

@mobilutz
Copy link

Is there any information on this topic?
I would love to use this functionality, but there is merge conflict problem 🙁

@Photonios
Copy link
Author

Hey @mobilutz, I think I managed to resolve the conflict 😄

bin/compile Outdated
@@ -15,13 +15,17 @@ S3_BUCKET=${HEROKU_GEO_BUILDBACK_S3_BUCKET:-"heroku-buildpack-geo"}

# Parameters
BUILD_DIR=$1
BP_DIR=$(cd $(dirname ${0:-}); cd ..; pwd)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really necessary here?
Same things is in line 20

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this got screwed when rebasing. I removed the duplicate line. Good catch 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

django.core.exceptions.ImproperlyConfigured: GEOS is required and has not been detected
2 participants