aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
Diffstat (limited to 'railties/bin')
-rw-r--r--railties/bin/server7
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/bin/server b/railties/bin/server
index 487d1fd954..3a8cc68258 100644
--- a/railties/bin/server
+++ b/railties/bin/server
@@ -8,7 +8,8 @@ OPTIONS = {
:ip => "0.0.0.0",
:environment => "development",
:server_root => File.expand_path(File.dirname(__FILE__) + "/../public/"),
- :server_type => WEBrick::SimpleServer
+ :server_type => WEBrick::SimpleServer,
+ :charset => "UTF-8"
}
ARGV.options do |opts|
@@ -30,6 +31,10 @@ ARGV.options do |opts|
"Make Rails run as a Daemon (only works if fork is available -- meaning on *nix)."
) { OPTIONS[:server_type] = WEBrick::Daemon }
+ opts.on("-c", "--charset=charset", String,
+ "Set default charset for output.",
+ "Default: UTF-8") { |OPTIONS[:charset]| }
+
opts.separator ""
opts.on("-h", "--help",