heroku run -a app script / rails console
给出:
Running `script/rails console` attached to terminal... up, run.3422
bash: script/rails: Permission denied
am on Windows 8 ...
heroku version
heroku/toolbelt/2.41.0 (i386-mingw32) ruby/1.9.3
答案 0 :(得分:0)
需要在app之后和命令之前添加“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>
(线索来自here)