From cc90ed38704a8de6eb4e8a086de7736c2f80333d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 9 Aug 2018 10:14:45 -0400 Subject: [PATCH] Don't look for the only argument, but the first one --- bin/rails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/rails b/bin/rails index 6ce45ce44f..d7b24fe7ed 100755 --- a/bin/rails +++ b/bin/rails @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -if !ENV["RAILS_ENV"] && (ARGV == ["s"] || ARGV == ["server"]) +if !ENV["RAILS_ENV"] && (ARGV[0] == "s" || ARGV[0] == "server") ENV["UNICORN_PORT"] = "3000" exec File.expand_path("unicorn", __dir__) end