mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
Merge pull request #2865 from lcd1232/patch-1
This commit is contained in:
commit
4acba3dddd
|
@ -69,6 +69,14 @@ if env("USE_DOCKER") == "yes":
|
||||||
|
|
||||||
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
|
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
|
||||||
INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]
|
INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]
|
||||||
|
{%- if cookiecutter.js_task_runner == 'Gulp' %}
|
||||||
|
try:
|
||||||
|
_, _, ips = socket.gethostbyname_ex("node")
|
||||||
|
INTERNAL_IPS.extend(ips)
|
||||||
|
except socket.gaierror:
|
||||||
|
# The node container isn't started (yet?)
|
||||||
|
pass
|
||||||
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
# django-extensions
|
# django-extensions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user