0

heroku run -a 应用脚本/rails 控制台

给出:

Running `script/rails console` attached to terminal... up, run.3422
bash: script/rails: Permission denied

我在 Windows 8 上...

heroku version
heroku/toolbelt/2.41.0 (i386-mingw32) ruby/1.9.3
4

1 回答 1

0

需要在应用程序之后和命令之前添加“ruby”...

heroku run -a my-app ruby script/rails console

Running `ruby script/rails console` attached to terminal... up, run.5473

... various deprecation warnings re "You have Rails 2.3-style plugins in vendor/plugins! 

Loading production environment (Rails 3.2.11)
irb(main):001:0>

(从这里提供了线索)

于 2013-09-24T11:42:26.673 回答