Can't start foreman in Heroku Tutorial using Python

前端 未结 4 1564
长发绾君心
长发绾君心 2020-12-04 16:39

I have been attempting to complete this tutorial, but have run into a problem with the foreman start line. I am using a windows 7, 64 bit machine and am attemp

相关标签:
4条回答
  • 2020-12-04 17:07

    I had this problem. I fixed it by uninstalling version 0.62 of the foreman gem and installing 0.61.

    gem uninstall foreman
    gem install foreman -v 0.61
    
    0 讨论(0)
  • 2020-12-04 17:12

    Uninstalling the heroku toolbelt and reinstall it to a path that does not have spaces in it, for example C:\heorku\ will help a bit. Aside from that the heroku windows installer is horribly broken at the moment, not exactly a point of pride for us. To work around the issue with foreman you can set the environment variables your self using export VAR=VALUE and then run your app using what ever commands you put in your procfile.

    This is going to improve in the future.

    0 讨论(0)
  • 2020-12-04 17:22

    Yes, heroku-toolbelt-installer is not working correctly at present (30-Aug-2013). For windows the following steps worked for me:

    1. uninstall heroku (via windows 'program uninstall')
    2. install heroku https://toolbelt.heroku.com/windows into C:\bin\heroku , i.e. 'no spaces'
    3. install ruby from http://rubyinstaller.org/downloads/
    4. in cmd run "gem install foreman -v 0.61". Yes, "gem install foreman" installed v0.63, which does not work for "foreman start"
    5. in cmd "foreman start" works for the heroku hello-world example
    0 讨论(0)
  • 2020-12-04 17:25

    One thing to add is that if you install Heroku to a directory with spaces, that will also cause an error when you try and do gem install foreman -v 0.61 (on Windows).

    Once I'd reinstalled Heroku to C:\Heroku instead of C:\Program Files\Heroku then I was able to make this work using Eric Speelman's solution above.

    0 讨论(0)
提交回复
热议问题