Skip to content

Use default Procfile if PROCFILE is not set #2

@dnjstrom

Description

@dnjstrom

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 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions