mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
由于docker的hosts的动态生成机制,hosts直接写入镜像无效,故调整为写在启动脚本中
This commit is contained in:
2
start.sh
2
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
|
||||
|
||||
Reference in New Issue
Block a user