subdir-heroku-buildpack icon indicating copy to clipboard operation
subdir-heroku-buildpack copied to clipboard

PROJECT_PATH is undefined

Open 619 opened this issue 4 years ago • 16 comments

This is what I get when I follow the steps listed in the README.md

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

619 avatar Aug 22 '20 01:08 619

@619 try to use app instead projects/nodejs/app only value in PROJECT_PATH environment variable

mateussmohamed avatar Sep 15 '20 03:09 mateussmohamed

I'm getting the same error mentioned but the solution provided by @mateussmohamed does not work for me. Is there another approach to this error? PROJECT_PATH continues to be undefined.

Diego-Paris avatar Dec 23 '20 10:12 Diego-Paris

Hello, I'm having the same error as well. I have "Code" as the only value in my right-hand box on Config Vars and I am getting the same message in error as well:

"PROJECT_PATH is undefined ! Push rejected, failed to compile Subdir buildpack app."

riggiobill avatar Jan 26 '21 18:01 riggiobill

I fixed this by just removing the build pack and in my travis.yml file added in a before_script: cd frontEnd My travis file is in the parent folder of the project

More to my answer here https://stackoverflow.com/questions/54878184/how-to-deploy-a-subfolder-in-repository-to-heroku-via-travis-ci/66025176#66025176

JosephKilbane avatar Feb 03 '21 10:02 JosephKilbane

I had the same problem, but I was able to fix it. My github repository structure that I was hosting on Heroku was like this:

repository_name/
├─ my_project_to_run/
│   ├─ run.py
│   ├─ ...

I had set the PROJECT_PATH config var to repository_name/my_project_to_run but it didn't work.

Instead, inspired by @mateussmohamed reply,

@619 try to use app instead projects/nodejs/app only value in PROJECT_PATH environment variable

I set the PROJECT_PATH config var to only my_project_to_run and it worked flawlessly.

Hope it helps. 👍

sguridirt avatar Feb 26 '21 01:02 sguridirt

-----> Building on the Heroku-20 stack -----> Using buildpacks: 1. https://github.com/timanovsky/subdir-heroku-buildpack.git 2. heroku/java -----> Subdir buildpack app detected PROJECT_PATH is undefined ! Push rejected, failed to compile Subdir buildpack app. ! Push failed

Same Error!!!! Any Fix!?

Already defined the PROJECT_PATH in the setting tab and nothing.

gminetoma avatar Jun 01 '21 15:06 gminetoma

@619 try to use app instead projects/nodejs/app only value in PROJECT_PATH environment variable

this solution worked for me. Thanks, my time saver!

SirawichDev avatar Aug 08 '21 04:08 SirawichDev

it did not work for me

udemezue01 avatar Jan 31 '22 16:01 udemezue01

Looks like if you have a single subdirectory, Heroku changes into it automatically and thus the build root is no longer your repository root. If that's the case, just add a subdirectory at root of your repo with a single empty file in it. E.g.

/my-project-dir/package.json
/empty-dir/.keep

msmans avatar Mar 22 '22 06:03 msmans

Looks like if you have a single subdirectory, Heroku changes into it automatically and thus the build root is not longer your repository root. If that's the case, just add a subdirectory at root of your repo with a single empty file in it. E.g.

/my-project-dir/package.json
/empty-dir/.keep

You're right, I did what you suggested and worked for me! Thanks!

wandersonmaceds avatar Mar 31 '22 12:03 wandersonmaceds

Thanks, it worked for me too

On Thu, Mar 31, 2022 at 1:03 PM Wanderson Macêdo @.***> wrote:

Looks like if you have a single subdirectory, Heroku changes into it automatically and thus the build root is not longer your repository root. If that's the case, just add a subdirectory at root of your repo with a single empty file in it. E.g.

/my-project-dir/package.json /empty-dir/.keep

You're right, I did what you suggested and worked for me! Thanks!

— Reply to this email directly, view it on GitHub https://github.com/timanovsky/subdir-heroku-buildpack/issues/5#issuecomment-1084489942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2KU4IGTIU3TJFNUTST2A3VCWH7HANCNFSM4QH2C4AA . You are receiving this because you commented.Message ID: @.***>

-- https://about.me/thejohnbenjamin?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb Nwabufor John

Web Developer, Blogger, Digital Marketing Expert and Serial Entrepreneur.

Visit the Link Below.

Tchelete.com http://Tchelete.com (Blog)

Make sure to also visit the links below. 🖐🏼

👉👉 How To Start a Blog. http://Tchelete.com/how-to-start-a-blog

udemezue01 avatar Mar 31 '22 12:03 udemezue01

My file structure is like My_Username/Project_Name/server.js

what should i use as the project path

Rajthegreat123 avatar Aug 22 '22 20:08 Rajthegreat123

I will be with you shortly, hold on, let me copy my files and send it over

On Mon, Aug 22, 2022 at 9:11 PM Rajthegreat123 @.***> wrote:

My file structure is like My_Username/Project_Name/server.js

what should i use as the project path

— Reply to this email directly, view it on GitHub https://github.com/timanovsky/subdir-heroku-buildpack/issues/5#issuecomment-1222910762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2KU4PT74QXUIRD7MWKMC3V2PNGXANCNFSM4QH2C4AA . You are receiving this because you commented.Message ID: @.***>

-- https://about.me/thejohnbenjamin?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb Nwabufor John

Web Developer, Blogger, Digital Marketing Expert and Serial Entrepreneur.

Visit the Link Below.

Tchelete.com http://Tchelete.com (Blog)

Make sure to also visit the links below. 🖐🏼

👉👉 How To Start a Blog. http://Tchelete.com/how-to-start-a-blog

udemezue01 avatar Aug 22 '22 20:08 udemezue01

ok i am waiting

Rajthegreat123 avatar Aug 24 '22 07:08 Rajthegreat123

Here you go.

On Wed, 24 Aug 2022, 8:25 am Rajthegreat123, @.***> wrote:

ok i am waiting

— Reply to this email directly, view it on GitHub https://github.com/timanovsky/subdir-heroku-buildpack/issues/5#issuecomment-1225305673, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2KU4OIKPDVWVIYXFZYYQLV2XE73ANCNFSM4QH2C4AA . You are receiving this because you commented.Message ID: @.***>

udemezue01 avatar Aug 24 '22 09:08 udemezue01