修复entrypoint

This commit is contained in:
whyour 2021-05-01 23:23:47 +08:00
parent 05588e88ac
commit 65d13d5752
2 changed files with 2 additions and 4 deletions

View File

@ -13,14 +13,14 @@ echo
echo -e "======================3. 检测配置文件========================\n" echo -e "======================3. 检测配置文件========================\n"
fix_config fix_config
cp -fv ${QL_DIR}/docker/front.conf /etc/nginx/conf.d/front.conf cp -fv $dir_root/docker/front.conf /etc/nginx/conf.d/front.conf
echo -e "======================4. 启动nginx========================\n" echo -e "======================4. 启动nginx========================\n"
nginx -c /etc/nginx/nginx.conf nginx -c /etc/nginx/nginx.conf
echo echo
echo -e "======================5. 启动控制面板========================\n" echo -e "======================5. 启动控制面板========================\n"
pm2 start ${QL_DIR}/build/app.js -n panel pm2 start $dir_root/build/app.js -n panel
echo -e "控制面板启动成功...\n" echo -e "控制面板启动成功...\n"
echo -e "\n容器启动成功...\n" echo -e "\n容器启动成功...\n"

View File

@ -239,8 +239,6 @@ update_depend() {
npm_install_2 $dir_scripts npm_install_2 $dir_scripts
fi fi
[ ! -d $dir_scripts/node_modules ] && npm_install_2 $dir_scripts
if [ ! -s $dir_scripts/requirements.txt ] || [[ $(diff $dir_sample/requirements.txt $dir_scripts/requirements.txt) ]]; then if [ ! -s $dir_scripts/requirements.txt ] || [[ $(diff $dir_sample/requirements.txt $dir_scripts/requirements.txt) ]]; then
cp -f $dir_sample/requirements.txt $dir_scripts/requirements.txt cp -f $dir_sample/requirements.txt $dir_scripts/requirements.txt
cd $dir_scripts cd $dir_scripts