# File lib/myrurema.rb, line 118 def server port = @opt.port || default_port(@opt.rubyver) th = Thread.new{ sh "#{bitclust_path/'standalone.rb'}" + " --srcdir=#{bitclust_path}" + " --baseurl=http://localhost:#{port}" + " --port=#{port}" + " --database=#{db_path(@opt.rubyver)}" + " --debug" # needed to avoid the server running as daemon :-( } url = "http://localhost:#{port}/view/" puts "Starting BitClust server .." puts "Open #{url} in your browser." puts if @opt.open_browser sleep 1 # wait for the server to start Launchy.open(url) end th.join end