Foreman start fails on Windows following Heroku tutorial

你。 提交于 2019-11-30 03:48:40

Although this question doesn't seem to be of interest to anyone here (5 views in ~2 hours, 0 answers, 0 comments...), I have found the solution and ready to share it with anyone that will encounter it:

  1. Install the latest ruby from rubyinstaller.org (1.9.3-p194) - Sometimes there is a collision installs of the same version, in my case I've just uninstalled all versions of ruby, but if you already have other application that needs older version then you have to be more careful

  2. Check that your system is default to use this version by invoking ruby -v in command line prompt: and getting ruby 1.9.3p194 (2012-04-20) [i386-mingw32] (you may have to close and re-open cmd, to include the new environment variables)

  3. Still in cmd, invoke:

    gem install foreman
    gem install taps
    
  4. now go to your Procfile app (e.g. your heroku example app from the tutorial) and execute foreman start, you should see something like this:

    18:23:52 web.1  | started with pid 7212
    18:23:54 web.1  |  * Running on http://0.0.0.0:5000/
    18:23:54 web.1  |  * Restarting with reloader 
    

after manually adding the ruby path to my system PATH environment variable (Win 7), it still didn't work.

i had to change the default install path of Heroku from

C:\Program Files(x86)\Heroku to C:\Heroku

as it didn't properly handle the space in the path. I also tried C:\PROGRA~2\Heroku\ruby-1.9.2\bin to no avail. I imagine any space-less path will do.

hth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!