Skip to content

heroku local no longer works for projects without a Procfile #3630

@36degrees

Description

@36degrees

Since the release of Heroku 11, heroku local now errors when run against a project that does not include a Procfile:

npx --yes heroku local               
    Error: ENOENT: no such file or directory, open 'Procfile'
    Code: ENOENT

Heroku 10 previously supported this by falling back to npm start:

$ npx --yes heroku@10 local            
 ›   Warning: heroku update available from 10.17.0 to 11.0.1.
[WARN] ENOENT: no such file or directory, open 'Procfile'
[OKAY] package.json file found - trying 'npm start'
[WARN] ENOENT: no such file or directory, open 'Procfile'
[OKAY] package.json file found - trying 'npm start'
# Project runs – output omitted

This might be an unintentional feature as it looks like the logic for it is coming from foreman. It'd be good to understand if it's an intentional change, and whether restoring the previous behaviour is an option.

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