subdir-heroku-buildpack
subdir-heroku-buildpack copied to clipboard
PROJECT_PATH is undefined
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 try to use app
instead projects/nodejs/app
only value in PROJECT_PATH
environment variable
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.
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."
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
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
insteadprojects/nodejs/app
only value inPROJECT_PATH
environment variable
I set the PROJECT_PATH config var to only my_project_to_run
and it worked flawlessly.
Hope it helps. 👍
-----> 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.
@619 try to use
app
insteadprojects/nodejs/app
only value inPROJECT_PATH
environment variable
this solution worked for me. Thanks, my time saver!
it did not work for me
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
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!
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
My file structure is like My_Username/Project_Name/server.js
what should i use as the project path
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
ok i am waiting
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: @.***>