deploy-faas.sh 432 B

123456789101112131415161718
  1. #! /bin/sh
  2. mkdir temp_web
  3. npm run deploy:build
  4. cd temp_web
  5. git clone -b gh-pages https://github.com/ElemeFE/element.git && cd element
  6. # build sub folder
  7. SUB_FOLDER='2.0'
  8. mkdir $SUB_FOLDER
  9. # rm -rf *.js *.css *.map static
  10. rm -rf $SUB_FOLDER/**
  11. # cp -rf ../../examples/element-ui/** .
  12. cp -rf ../../examples/element-ui/** $SUB_FOLDER/
  13. cp -rf ../../examples/element-ui/versions.json .
  14. cd ../..
  15. # deploy domestic site
  16. faas deploy alpha