herokuish: Cannot execute any Procfile commands
For some reason I can run herokuish test just fine, however herokuish procfile start web is failing and not printing any kind of message. It just exits with code 8. I also tried playing around interactively and didn’t have any luck. herokuish procfile exec echo test or any other command will exit with code 8 as well.
docker-compose.yml
version: '2'
services:
web:
image: gliderlabs/herokuish
volumes:
- .:/tmp/app
ports:
- 3000:3000
entrypoint: ["/bin/herokuish"]
# command: ["test"]
# command: ["procfile", "start", "web"]
Procfile
web: bin/rails server -p $PORT
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 16 (6 by maintainers)
Commits related to this issue
- Explain `herokuish` for Heroku users See https://github.com/gliderlabs/herokuish/issues/321 — committed to abitrolly/herokuish by abitrolly 4 years ago
This is optional and not required ☝️
This is the normal usage of herokuish to build and run an app 👇
The
buildcommand will take your app repo from the/tmp/appmount and move the built product to/appin the resulting container image. You must then commit that to a local tag and run/start web(replacingwebwith whatever the appropriateProcfilekey you’ve defined)The mistake in your flow was that you were attempting to run your app from the
gliderlabs/herokuishimage instead of the output of the/buildcontainer.We would definitely accept a PR that made this flow more clear in the
README.If it show gunicorn not found means this app is not detected as a Python app. For my case, I also encountered this error since I installed
npm. Because it is detected as a node.js. Thus, it installedheroku-nodejs-pluginandnodeinstead ofpythonunder path:/app/.heroku.dokku buildpacks:set <app name> https://github.com/heroku/heroku-buildpack-python.gitAnd then push code again, it will get fix. Check documentation for setting buildpacks if needed.