docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

bin/setup-domain is not compatible with Windows directory

Open danielinacio opened this issue 3 years ago • 2 comments

Tip: I'm using docker-magento and needed to add 127.0.0.1 ::1 magento.test to c:\Windows\System32\Drivers\etc\hosts after installation for it to work perfectly

danielinacio avatar Nov 24 '21 20:11 danielinacio

This is due to the hard-coding of the /etc/hosts directory at https://github.com/markshust/docker-magento/blob/master/compose/bin/setup-domain#L9 -- we'll need to build in a linux/win detector and then set the proper directory from that result.

markshust avatar Nov 30 '21 15:11 markshust

probably use uname to detect os, may work fine

4j4yk avatar Dec 30 '21 17:12 4j4yk