【问题标题】:Running Rails console on heroku, in sandbox mode在 Heroku 上以沙盒模式运行 Rails 控制台
【发布时间】:2013-03-09 18:34:21
【问题描述】:

在文档和 SO 上都找不到它,但是有没有办法在 heroku (Celadon Cedar) 上以沙盒模式运行 Rails (3.2.x) 控制台,相当于

rails console --sandbox

【问题讨论】:

    标签: ruby-on-rails heroku console


    【解决方案1】:

    对于更“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>
    

    【讨论】:

      猜你喜欢
      • 2021-05-22
      • 2011-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-20
      相关资源
      最近更新 更多