利用Nginx转发将CRAWLAB_API_ADDRESS设置为默认IP

This commit is contained in:
marvzhang
2020-01-12 19:28:34 +08:00
parent e45ac0a358
commit de52b0dc10
8 changed files with 43 additions and 18 deletions

View File

@@ -6,7 +6,7 @@ then
:
else
jspath=`ls /app/dist/js/app.*.js`
sed -i "s?http://localhost:8000?${CRAWLAB_API_ADDRESS}?g" ${jspath}
sed -i "s?###CRAWLAB_API_ADDRESS###?${CRAWLAB_API_ADDRESS}?g" ${jspath}
fi
# replace base url