调整ci
This commit is contained in:
14
build.sh
14
build.sh
@@ -27,14 +27,14 @@ fi
|
||||
|
||||
# index
|
||||
echo -e "\t\tBuild for index page "
|
||||
cd ./index && npm install && ng build --prod
|
||||
npm install && ng build --prod
|
||||
|
||||
cd ./dist/index/ && tar -cf index.tar ./* && cp index.tar $basePath
|
||||
|
||||
cd "$basePath"
|
||||
#cd "$basePath"
|
||||
|
||||
# admin
|
||||
echo -e "\t\tBuild for admin page "
|
||||
cd $basePath/admin && npm install && ng build --prod
|
||||
cd ./dist/admin/ && sed '6s/\"\/\"/\"\/admin\/\"/g' index.html > index.txt && cp index.txt index.html
|
||||
cd .. && tar -cf admin.tar ./admin/ && cp admin.tar $basePath
|
||||
## admin
|
||||
#echo -e "\t\tBuild for admin page "
|
||||
#cd $basePath/admin && npm install && ng build --prod
|
||||
#cd ./dist/admin/ && sed '6s/\"\/\"/\"\/admin\/\"/g' index.html > index.txt && cp index.txt index.html
|
||||
# cd .. && tar -cf admin.tar ./admin/ && cp admin.tar $basePath
|
||||
|
||||
Reference in New Issue
Block a user