2013-03-20 83 views

回答

15

對於更多的「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> 
+0

'heroku run rails console --sandbox'也有效。 – evanrmurphy 2015-08-03 22:31:24

0

我設法它在沙箱中運行通過添加引號heroku run "rails console --sandbox"或短heroku run "rails c -s"

相關問題