mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
FIX: Use 127.0.0.1 instead of localhost for ember CLI
On new macs, `localhost` resolves to IPV6 of `::1` and unfortunately unicorn doesn't bind to IPv6 by default. This seems to be the path of least resistance. By using 127.0.0.1 we force IPv4 which works great.
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ require 'pathname'
|
||||
|
||||
RAILS_ROOT = File.expand_path("../../", Pathname.new(__FILE__).realpath)
|
||||
PORT = ENV["UNICORN_PORT"] ||= "3000"
|
||||
HOSTNAME = ENV["DISCOURSE_HOSTNAME"] ||= "localhost"
|
||||
HOSTNAME = ENV["DISCOURSE_HOSTNAME"] ||= "127.0.0.1"
|
||||
yarn_dir = File.join(RAILS_ROOT, "app/assets/javascripts/discourse")
|
||||
|
||||
PROXY =
|
||||
|
||||
Reference in New Issue
Block a user