我为我的应用程序使用Heroku和cloud9.io。rake db:migrate bundle:command not found
我得到的错误:
bash: bundle: command not found
当我尝试运行命令:
heroku run rake db:migrate
Localy我的应用程序工作正常,没有任何错误,但我不能够迁移和我得到的在herokuapp.com路径上应用。
我为我的应用程序使用Heroku和cloud9.io。rake db:migrate bundle:command not found
我得到的错误:
bash: bundle: command not found
当我尝试运行命令:
heroku run rake db:migrate
Localy我的应用程序工作正常,没有任何错误,但我不能够迁移和我得到的在herokuapp.com路径上应用。
您的问题可能是由于您正在运行的Ruby版本。
我以前也有过类似的问题,我想一切可能(安装捆绑等),但有一两件事,对我的工作是使用下面的命令手动设置的配置:
heroku config:add GEM_PATH=vendor/bundle/1.8
请请注意,您应该将1.8
更改为您当前运行的Ruby版本。
看起来类似的问题发布了[这里](http://stackoverflow.com/a/13296063/5076451)。 –
这并没有为我工作.. – olivier
运行'git推起源master'的,然后再次运行'Heroku的运行耙分贝:migrate' – Cyzanfar