Running the Rails console on a hero in sandbox mode

It was not possible to find it in documents or on SO, but is there any way to start the Rails console (3.2.x) in sandbox mode for the hero (Celadon Cedar), which is equivalent

rails console --sandbox
+5
source share
2 answers

For a more “alternative Heroku path,” it heroku run console --sandboxalso does the trick:

$ 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>
+15
source

I managed to run it in the sandbox by adding quotes heroku run "rails console --sandbox"or shorter ones heroku run "rails c -s".

0
source

All Articles