From 9b5a7d5aec5a39473ac0c72503558e1cd5569357 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Fri, 7 Oct 2022 19:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E4=BA=8Edocker=E7=9A=84hosts=E7=9A=84?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E7=94=9F=E6=88=90=E6=9C=BA=E5=88=B6=EF=BC=8C?= =?UTF-8?q?hosts=E7=9B=B4=E6=8E=A5=E5=86=99=E5=85=A5=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=97=A0=E6=95=88=EF=BC=8C=E6=95=85=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E5=86=99=E5=9C=A8=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/start.sh b/start.sh index 890a765..06e8fc4 100644 --- a/start.sh +++ b/start.sh @@ -34,5 +34,7 @@ if [ ! -e $CONTAINER_ALREADY_STARTED ]; then else echo "-- Not first container startup --" fi +echo "写入U2 hosts" +echo 172.64.153.252 u2.dmhy.org >>/etc/hosts echo "启动服务" python manage.py runserver 0.0.0.0:$DJANGO_WEB_PORT >>/var/www/html/ptools/db/$(date "+%Y%m%d").log 2>&1