timanovsky / subdir-heroku-buildpack

Allows to use subdirectory configured via environment variable as a project root
https://medium.com/@timanovsky/heroku-buildpack-to-support-deployment-from-subdirectory-e743c2c838dd
520 stars 329 forks source link

PROJECT_PATH is undefined? #4

Closed allthesignals closed 4 years ago

allthesignals commented 4 years ago

I can't tell if this is Heroku or something else... but it does not seem to be picking up my PROJECT_PATH environment variable?

-----> Subdir buildpack app detected
PROJECT_PATH is undefined
 !     Push rejected, failed to compile Subdir buildpack app.
 !     Push failed

But it's clearly defined: image

I've gotten this to work in other Heroku apps. The only difference here is that this repo is changing to a subdirectory folder structure.

Any thoughts? This is baffling to me.

allthesignals commented 4 years ago

I even made a new Heroku app. Whyyyyy.

allthesignals commented 4 years ago

Ah. Heroku Pipelines use the same Github repository across apps. I had the wrong repo setup. So the error is a little misleading — the env variable is defined but it can't find the path :)