Skip to content

A platform for community discussion. Free, open, simple.

Default `rails server` port should be 3000.

Guo Xiang Tan81c68491941b
diff --git a/bin/rails b/bin/rails
index fce3537f7cb..0e6a19807ed 100755
--- a/bin/rails
+++ b/bin/rails
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
if !ENV["RAILS_ENV"] && (ARGV == ["s"] || ARGV == ["server"])
- ENV["UNICORN_PORT"] = "9292"
+ ENV["UNICORN_PORT"] = 3000
exec File.expand_path("unicorn", __dir__)
end