Don't look for the only argument, but the first one

This commit is contained in:
Robin Ward 2018-08-09 10:14:45 -04:00
parent da1d520d4c
commit cc90ed3870
1 changed files with 1 additions and 1 deletions

View File

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