diff --git a/script/server b/script/server index 487d1fd9..c6bdbb6f 100755 --- a/script/server +++ b/script/server @@ -4,9 +4,9 @@ require 'webrick' require 'optparse' OPTIONS = { - :port => 3000, + :port => 2500, :ip => "0.0.0.0", - :environment => "development", + :environment => "production", :server_root => File.expand_path(File.dirname(__FILE__) + "/../public/"), :server_type => WEBrick::SimpleServer } @@ -18,8 +18,8 @@ ARGV.options do |opts| opts.separator "" opts.on("-p", "--port=port", Integer, - "Runs Rails on the specified port.", - "Default: 3000") { |OPTIONS[:port]| } + "Runs Instiki on the specified port.", + "Default: 2500") { |OPTIONS[:port]| } opts.on("-b", "--binding=ip", String, "Binds Rails to the specified ip.", "Default: 0.0.0.0") { |OPTIONS[:ip]| } @@ -44,6 +44,6 @@ require 'webrick_server' OPTIONS['working_directory'] = File.expand_path(RAILS_ROOT) -puts "=> Rails application started on http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}" -puts "=> Ctrl-C to shutdown server; call with --help for options" if OPTIONS[:server_type] == WEBrick::SimpleServer +puts "=> Instiki started on http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}" +puts "=> Ctrl-C to shutdown; call with --help for options" if OPTIONS[:server_type] == WEBrick::SimpleServer DispatchServlet.dispatch(OPTIONS)