Archive for August, 2006

Interact with your remote console

Thursday, August 31st, 2006

via errtheblog
Interact with your remote console! Just add this to deploy.rb
PLAIN TEXT
RUBY:

desc "remotely console"

task :console, :roles => :app do

  input = ''

  run "cd #{current_path} && ./script/console #{ENV['RAILS_ENV']}" do |channel, stream, data|

    next if data.chomp == input.chomp || data.chomp == ''

    print data

    channel.send_data(input = $stdin.gets) if data =~ /^(>|\?)>/

  [...]

snippits, programming, ruby on rails | No comments

You are currently browsing the Anodyne weblog archives for August, 2006.

Recently on Flickr

    mull - 21.jpgmull - 20.jpgmull - 19.jpgmull - 18.jpg

Recently Listened

Meta

The Carousell