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:
Robin Ward 2021-11-09 15:55:43 -05:00
parent a87216f1f3
commit 5998e69b9c
1 changed files with 1 additions and 1 deletions

View File

@ -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 =