Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

foreman start with a manual path

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.

like image 245
user1743703 Avatar asked Dec 20 '22 11:12

user1743703


2 Answers

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.

like image 163
quandrum Avatar answered Dec 30 '22 10:12

quandrum


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.

like image 34
csusbdt Avatar answered Dec 30 '22 09:12

csusbdt