7

ドキュメントでもSOでも見つかりませんでしたが、Rails(3.2.x)コンソールをheroku(Celadon Cedar)でサンドボックスモードで実行する方法はありますか?

rails console --sandbox
4

1 に答える 1

21

より「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>
于 2013-03-21T17:18:16.397 に答える