I am trying to run foreman on heroku. This is a common error, however, i still didnt find a solution. It is clearly missing a path here:
"/c/Program Files/ruby-1.9.2/bin/foreman: "C:/Program: bad interpreter: no such file or directory
My question is: is there a way to avoid this error by manually adding the whole path? Or where should I look to change it? Thank you.
This is a known issue with running foreman in Git bash shell on windows enviroment. (See github issue)
The only current workaround is running foreman in another environment, like Windows cmd prompt or powershell.
After reading knut's answer to this question, I fixed this problem on my system by re-installing Heroku Toolbelt to c:\heroku. After re-installation, the heroku command worked, but foreman would not run. I fixed this by manually adding the following to my system path.
C:\heroku\ruby-1.9.2\bin
You'll likely need to search for the foreman program to get the version of the above path that's correct for your system.
I also needed to replace foreman version 0.62 with 0.61, which I learned from this post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With