From 5998e69b9c516195de097f226d349dab10954df2 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 9 Nov 2021 15:55:43 -0500 Subject: [PATCH] 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. --- bin/ember-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ember-cli b/bin/ember-cli index e6931115257..a646b639705 100755 --- a/bin/ember-cli +++ b/bin/ember-cli @@ -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 =