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.
Since the release of Heroku 11,
heroku localnow errors when run against a project that does not include a Procfile:Heroku 10 previously supported this by falling back to
npm start: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.