在heroku上以沙箱模式运行Rails控制台
问题描述:
无法在文档中找到它,也没有在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