mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Compatibility with TruffleRuby (#16641)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
if !ENV["RAILS_ENV"] && (ARGV[0] == "s" || ARGV[0] == "server")
|
||||
if !ENV["RAILS_ENV"] && (ARGV[0] == "s" || ARGV[0] == "server") && Process.respond_to?(:fork)
|
||||
ENV["UNICORN_PORT"] ||= "3000"
|
||||
|
||||
if ARGV[1] == "-p" && (port = ARGV[2].to_i) > 0
|
||||
|
||||
Reference in New Issue
Block a user