【发布时间】:2013-09-12 16:53:02
【问题描述】:
我在一个没有管理员权限的 win 7 - 32 位系统上使用 Heroku。
我已经下载并安装了跟随http://community.webfaction.com/questions/11803/heroku-toolbelt的heroku工具带
cd ~
curl http://assets.heroku.com/heroku-client/heroku-client.tgz | tar zx
export PATH=$HOME/heroku-client/bin/:$PATH
按照 Leo 的建议,我已将 ruby 添加到 windows 路径以解决此问题
现在当我跑步时:
$ heroku run bash --app MYAPP
我明白了:
f:/heroku-client/lib/heroku/updater.rb:164:in `spawn': Exec format error - "m:/heroku-client/bin/heroku" update (Errno::ENOEXEC)
from f:/heroku-client/lib/heroku/updater.rb:164:in `background_update!'
from f:/heroku-client/lib/heroku/updater.rb:144:in `inject_libpath'
from f:/heroku-client/bin/heroku:19:in `<main>'
我已经添加到windows env变量路径:
F:/heroku-client/bin/;f:/heroku-client/lib/heroku/
我该如何解决这个问题?
【问题讨论】:
-
你能运行 ruby 命令吗?看起来它找不到 ruby 可执行文件。
-
我不懂ruby,应该输入什么命令?
-
你可以试试
ruby -v? -
我运行它并得到:sh.exe": ruby: command not found.
标签: ruby-on-rails ruby bash heroku