Commit 45dbbb77 authored by tywldx's avatar tywldx

fix static

parent 6f12cb05
...@@ -36,18 +36,20 @@ source ~/.bash_profile ...@@ -36,18 +36,20 @@ source ~/.bash_profile
echo "sed static to host" echo "sed static to host"
find ${package_path}/ -name "*.js" | xargs sed -i "s#static.q-gp.com#$host#g" find ${package_path}/ -name "*.js" | xargs sed -i "s#static.q-gp.com#$host#g"
find ${package_path}/ -name "*.html" | xargs sed -i "s#static.q-gp.com#$host#g" find ${package_path}/ -name "*.html" | xargs sed -i "s#static.q-gp.com#$host#g"
find ${package_path}/ -name "*.css" | xargs sed -i "s#static.q-gp.com#$host#g"
echo "sed html */public to empty"
find ${package_path}/ -name "*.html" | xargs sed -i "s#\/[^/]*\/public\/#\/#g"
find ${package_path}/ -name "*.css" | xargs sed -i "s#\/[^/]*\/public\/#\/#g"
echo "sed domain.com to liangkebang.com" echo "sed domain.com to liangkebang.com"
find ${package_path}/ -name "*.js" | xargs sed -i "s#.domain.com#-$NAMESPACE.liangkebang.com#g" find ${package_path}/ -name "*.js" | xargs sed -i "s#.domain.com#-$NAMESPACE.liangkebang.com#g"
find ${package_path}/ -name "*.html" | xargs sed -i "s#.domain.com#-$NAMESPACE.liangkebang.com#g" find ${package_path}/ -name "*.html" | xargs sed -i "s#.domain.com#-$NAMESPACE.liangkebang.com#g"
find ${package_path}/ -name "*.css" | xargs sed -i "s#.domain.com#-$NAMESPACE.liangkebang.com#g"
echo "sed xyqb.com to liangkebang.com" echo "sed xyqb.com to liangkebang.com"
find ${package_path}/ -name "*.js" | xargs sed -i "s#.xyqb.com#-$NAMESPACE.liangkebang.com#g" find ${package_path}/ -name "*.js" | xargs sed -i "s#.xyqb.com#-$NAMESPACE.liangkebang.com#g"
find ${package_path}/ -name "*.html" | xargs sed -i "s#.xyqb.com#-$NAMESPACE.liangkebang.com#g" find ${package_path}/ -name "*.html" | xargs sed -i "s#.xyqb.com#-$NAMESPACE.liangkebang.com#g"
find ${package_path}/ -name "*.css" | xargs sed -i "s#.xyqb.com#-$NAMESPACE.liangkebang.com#g"
echo "sed html */public to empty"
find ${package_path}/ -name "*.html" | xargs sed -i "s#\/[^/]*\/public\/#\/#g"
echo "sed q-gp.com to liangkebang.com" echo "sed q-gp.com to liangkebang.com"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment