-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Procfile #2
Comments
My Procfile in root looks like this:
And my Procfile in my |
Silly me 🙄 I must've had the web process dyno turned off, which explains why no web processes were running. However the app still doesn't run. When I have a Procfile in root I get the error Where am I supposed to put my Procfiles? And if in my project root, how do I fix the node: command not found error? |
Hi @Arrow7000, when you compile your app for deploying, you should be copying the Procfile to the root of the app that you're deploying. If you're deploying from For starting a node app, it's typical that you have an
|
let me know if that works for you or not! |
Thanks for replying! I tried that but now it just says
I think it's looking in the root folder for a Procfile, which is why it's not finding the Procfile in .buildpacks:
server/Procfile:
|
oops, I totally was thinking of a different build system, my bad! Okay, so to clarify, you should have one Procfile at the root directory that handles running all apps (each in a subdirectory). Here, you're declaring that
|
Can you provide the contents of the build log? Specifically I'm looking for lines that say:
|
It's definitely downloading the right buildpack, it did that from the start:
I tried putting the Procfile in the root and making it say
|
Let me know if there's anything I can do! If you think this might be a bug I'd be happy to try and create a pull request for it - I'd just need a bit of guidance on where in the source to look. |
Hi sorry for the slow response. To be honest, I don't currently use this buildpack :( All of the code is here: https://github.com/negativetwelve/heroku-buildpack-subdir/blob/master/bin/compile, this is the only file that compiles the app. Let me know what you find! |
I am running into the exact same error with a Ruby build and buildpack. Everything is set up the same as your final solution, with the obvious difference being a
I'm not sure what else there is to do here as there is no information about the inner working of the web dynos and nothing here that appears to be the culprit. |
@bpruitt-goddard someone from Heroku opened an issue on the nodejs buildpack repo. It doesn't look like it has been picked up yet though. Having said that, somebody did comment on it with an ad hoc solution for nodejs projects. I'm not sure what the equivalent of |
I had the same problem mentioned above so I created the following buildpack based on this one: https://github.com/Pagedraw/heroku-buildpack-select-subdir It works for us. Let me know if it also works for you! |
So the problem is that heroku buildpacks install things in The solution is to:
This adds the paths to your Different 3rd party buildpacks use different stuff. Like I also had to symlink works |
@atomkirk It's a bit late, but a recent commit solved this: @negativetwelve I think this one can be closed now :) |
Firstly thank you for creating this! I need to deploy an app which is inside a repo's subdirectory (hence this issue).
However I've run into a problem. Even though the stdout of the deploy script seems to say that it has discovered the web process type, the logs then say that there is no web process declared. I don't understand how this is possible.
Deployment stdout
heroku logs --tail
Initially I only had a Procfile in the subdirectory, but then the deployment script didn't seem to pick up on it so I created a separate Procfile in the project root, but now it still doesn't seem to work.
The text was updated successfully, but these errors were encountered: