deploy-faas.sh 379 B

1234567891011121314151617
  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. cd ../..
  14. # deploy domestic site
  15. faas deploy alpha