Sha256: adc2775f8f32ea1f4f65ca1fb1a7b6b7eb42cd1d363ee474682cbb6d69bdefa6

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

Execute.define_task do
  desc "start", "Start rhoconnect server"
  def start
    invoke :dtach_installed
    command = (jruby?) ? trinidad? : (thin? || mongrel? || report_missing_server)
    if windows?
      puts 'Starting rhoconnect...'
      system("#{command} config.ru -P #{rhoconnect_pid}")
    elsif jruby?
      puts 'Starting rhoconnect in jruby environment...'
      system("#{command}")
    else
      puts 'Detach with Ctrl+\  Re-attach with rhoconnect attach'
      sleep 2
      cmd "dtach -A #{rhoconnect_socket} #{command} config.ru -P #{rhoconnect_pid}"
    end #if
  end #start
end #do

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/start.rb
rhoconnect-3.2.0.beta2 commands/commands/rhoconnect/start.rb
rhoconnect-3.2.0.beta1 commands/commands/rhoconnect/start.rb