Sha256: 6ba9acc8e4012b404723b18770d785834899c15c63ca2a7b382a41b31334d858

Contents?: true

Size: 601 Bytes

Versions: 13

Compression:

Stored size: 601 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

13 entries across 13 versions & 1 rubygems

Version Path
rhoconnect-3.3.6 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/start.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/start.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/start.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/start.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/start.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/start.rb