Skip to content

A platform for community discussion. Free, open, simple.

Use string when setting env value.

Guo Xiang Tan56d3e0720638
diff --git a/bin/rails b/bin/rails
index 0e6a19807ed..6ce45ce44f8 100755
--- a/bin/rails
+++ b/bin/rails
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
if !ENV["RAILS_ENV"] && (ARGV == ["s"] || ARGV == ["server"])
- ENV["UNICORN_PORT"] = 3000
+ ENV["UNICORN_PORT"] = "3000"
exec File.expand_path("unicorn", __dir__)
end