-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PROJECT_PATH is undefined #5
Comments
@619 try to use |
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 |
I fixed this by just removing the build pack and in my 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.
I had set the PROJECT_PATH config var to Instead, inspired by @mateussmohamed reply,
I set the PROJECT_PATH config var to only Hope it helps. 👍 |
-----> Building on the Heroku-20 stack Same Error!!!! Any Fix!? Already defined the PROJECT_PATH in the setting tab and nothing. |
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.
|
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
<#5 (comment)>,
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 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
<#5 (comment)>,
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
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2KU4OIKPDVWVIYXFZYYQLV2XE73ANCNFSM4QH2C4AA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
i had the same problem but i solved changing the path name from |
In case someone still has an issue with this. None of the above worked for me. My folder structure was mainfolder/subfolder/app and the project path was set to mainfolder/subfolder/ but it failed. I tried all the combinations above and they all failed... the final solution that worked for me was just ./ |
heroku is about to stop supporting builds on heroku-20, has anybody gotten it to work on a later stack? |
@jitDotBlake - Yes, this is working for me on heroku-24. It works by running a very simple bash script, so I expect it will continue working for a long time. The error Anyway, PR #13 improves the error messaging. IMO, it should be merged! |
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
The text was updated successfully, but these errors were encountered: