mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
update replace static cdn host function
This commit is contained in:
parent
679512e3cc
commit
b50f5404ff
@ -39,8 +39,9 @@ fi
|
|||||||
|
|
||||||
cd $APP/dist
|
cd $APP/dist
|
||||||
if [ ! -z "$STATIC_CDN_HOST" ]; then
|
if [ ! -z "$STATIC_CDN_HOST" ]; then
|
||||||
find . -name index.html -exec sed -i "s/link href=\/static/link href=\/\/$STATIC_CDN_HOST\/static/g" {} \;
|
find . -name index.html -exec sed -i "s/__STATIC_CDN_HOST__/\/\/$STATIC_CDN_HOST/g" {} \;
|
||||||
find . -name index.html -exec sed -i "s/script type=text\/javascript src=\/static/script type=text\/javascript src=\/\/$STATIC_CDN_HOST\/static/g" {} \;
|
else
|
||||||
|
find . -name index.html -exec sed -i "s/__STATIC_CDN_HOST__//g" {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP
|
cd $APP
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user