您好我的Linux是虚拟机。当我正在使用heroku运行rake db:seed时它会变得清爽并被关闭。当我尝试播种heroku时再次运行它后,我得到:
saasbook@saasbook:~/rails_pro/vofr$ heroku run
! Error in heroku-run:
! Cannot read property 'filter' of undefined
! See /home/saasbook/.heroku/error.log for more info.
这是我的错误记录:
2016/02/29 17:23:27 heroku-cli: Installing core plugins...
NULNULNULNULNULNUL.....NUL
29 21:26:16 Error during run:null
2016/02/29 21:26:16 TypeError: Cannot read property 'filter' of undefined
at [eval]:36:28
at Object.exports.runInThisContext (vm.js:54:17)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:413:34)
at node.js:544:27
at _combinedTickCallback (node.js:370:9)
at process._tickCallback (node.js:401:11)
答案 0 :(得分:2)
最后,我完全删除了heroku。
sudo apt-get --purge remove heroku
sudo apt-get --purge remove heroku-toolbelt
rm -rf /usr/local/heroku
rm -rf ~/.heroku
然后:
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku --version