correct issues

This commit is contained in:
Sam 2018-08-07 18:27:44 +10:00
parent aa9a9a5a72
commit 84c4dfd22d
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env ruby
if !ENV["RAILS_ENV"] && (ARGV == ["s"] || ARGV["server"])
if !ENV["RAILS_ENV"] && (ARGV == ["s"] || ARGV == ["server"])
ENV["UNICORN_PORT"] = "9292"
exec File.expand_path("unicorn", __dir__)
end

View File

@ -21,6 +21,7 @@ if !ARGV.include?("-E") &&
ENV["UNICORN_PORT"] ||= "9292"
ENV["UNICORN_SIDEKIQS"] ||= "1"
end
load Gem.bin_path('unicorn', 'unicorn')