Default `rails server` port should be 3000.

This commit is contained in:
Guo Xiang Tan 2018-08-07 16:33:04 +08:00
parent 84c4dfd22d
commit 81c6849194
1 changed files with 1 additions and 1 deletions

View File

@ -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