在herok上以沙盒模式运行Rails控制台 [英] Running Rails console on heroku, in sandbox mode
本文介绍了在herok上以沙盒模式运行Rails控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无法在文档或SO中找到它,但是有一种方法可以在heroku(Celadon Cedar)上以沙盒模式运行Rails(3.2.x)控制台,相当于
Couldn't find it in the docs, nor on SO, but is there a way to run the Rails (3.2.x) console in sandbox mode on heroku (Celadon Cedar), equivalent to
rails console --sandbox
推荐答案
对于更多的Heroku方式替代方案, heroku运行控制台--sandbox
For a more "the Heroku way" alternative, heroku run console --sandbox
does the trick as well:
$ 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>
这篇关于在herok上以沙盒模式运行Rails控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文