5
無法在文檔中找到它,也沒有在SO上找到它,但有沒有辦法在heroku(Celadon Cedar)上以沙箱模式運行Rails(3.2.x)控制檯,相當於在heroku上以沙箱模式運行Rails控制檯
rails console --sandbox
無法在文檔中找到它,也沒有在SO上找到它,但有沒有辦法在heroku(Celadon Cedar)上以沙箱模式運行Rails(3.2.x)控制檯,相當於在heroku上以沙箱模式運行Rails控制檯
rails console --sandbox
對於更多的「Heroku的方式」替代,heroku run console --sandbox
的伎倆還有:
$ heroku run console --sandbox
Running `console --sandbox` attached to terminal... up, run.6024
[...]
Loading production environment in sandbox (Rails 3.2.12)
Any modifications you make will be rolled back on exit
irb(main):001:0>
我設法它在沙箱中運行通過添加引號heroku run "rails console --sandbox"
或短heroku run "rails c -s"
。
'heroku run rails console --sandbox'也有效。 – evanrmurphy 2015-08-03 22:31:24