-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Currently, if the PROCFILE environment variable is not set this buildpack will fail with an error. I would like to suggest that we don't fail right away but try and use the default Procfile and print a notice that we did. Only if no Procfile can be found in the root directory should we fail with an error. The PROCFILE can in this sense be regarded as an override, rather than a required definition. I believe this behavior should be a bit more user-friendly and about as easy to debug.
About my specifc use-case:
My code-base contains both a webapp and a storybook static site generator and each require their own build and run steps. Usually what I want is for the webapp to build/test/run as normal but for the storybook deploy I would like to override the build/run steps with as little changes as possible to the other deployment configuration. Adding a default PROCFILE value would allow me to leave it out everywhere but the storybook deploy.
If you feel that this seems like a good idea I'd be happy to contribute with a PR 🙂