尝试运行heroku logs
以检查错误,得到的是:
$ heroku run rake db:migrate
! Error in heroku-run:
! Cannot find module 'heroku-run'
! See ~/.heroku/error.log for more info.
现在,每当我运行heroku命令时,我都会收到这条消息。尝试更新heroku,没有变化。尝试安装heroku运行,而不是宝石。检查了错误日志,它只是说了同样的事情:
2016/04/09 22:51:45 Error: Cannot find module 'heroku-run'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/tmp/heroku-script-021789235:34:14)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
对于ubuntu,我必须:
sudo aptitude purge heroku heroku-toolbelt
rm -rf ~/.heroku
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
在事情重新开始之前。
我认为osx的heroku工具带客户端存在问题,请运行heroku update
以获得修复版本。