【发布时间】:2012-03-23 01:37:45
【问题描述】:
我想通过 capistrano 从本地机器进入生产服务器上的 rails 控制台。 我找到了一些要点,例如https://gist.github.com/813291 当我通过
进入控制台时cap production console
我得到以下结果
192-168-0-100:foldername username $ cap console RAILS_ENV=production
* executing `console'
* executing "cd /var/www/myapp/current && rails console production"
servers: ["www.example.de"]
[www.example.de] executing command
[www.example.de] rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '1.9.3' -c 'cd /var/www/myapp/current && rails console production'
/var/www/myapp/releases/20120305102218/app/controllers/users_controller.rb:3: warning: already initialized constant VERIFY_PEER
Loading production environment (Rails 3.2.1)
Switch to inspect mode.
就是这样...现在我可以输入一些文本,但什么也没有发生...
有人知道如何完成这项工作或解决我的问题吗?
【问题讨论】:
标签: ruby-on-rails console capistrano