Sha256: 19f77e0663383605bdb20e896015d41de95d6d95898cc9c0409b87509ab06a25
Contents?: true
Size: 926 Bytes
Versions: 4
Compression:
Stored size: 926 Bytes
Contents
Execute.define_task do desc "start", "Start rhoconnect server" def start invoke :config unless RedisRunner.running? redis_config = "#{$redis_options[:host]}:#{$redis_options[:port]}" puts "Redis is not running on #{redis_config}. Please start it by running 'rhoconnect redis-start' command." exit end 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 if dtach_installed? puts 'Detach with Ctrl+\ Re-attach with rhoconnect attach' sleep 2 cmd "dtach -A #{rhoconnect_socket} #{command} config.ru -P #{rhoconnect_pid}" else cmd "#{command} config.ru -P #{rhoconnect_pid}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rhoconnect-3.4.5 | commands/rhoconnect/start.rb |
rhoconnect-3.4.4 | commands/rhoconnect/start.rb |
rhoconnect-3.4.3 | commands/rhoconnect/start.rb |
rhoconnect-3.4.2 | commands/rhoconnect/start.rb |