deploy.sh 743 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # build, copy build files, and copy (manually) content of index.html to https://physics.itmo.ru/ru/node/2611/edit
  3. quasar build
  4. cp dist/spa/nmiejs.wasm dist/spa/js/nmiejs.wasm
  5. #cd ~/github/kostyfisik.github.io
  6. #git reset --hard c66101abdd5db0a4ff5ef69c3328cdfdbadaa398
  7. #cp -r ../scattnlay/guiapp/dist/spa/* ./
  8. #git add *
  9. #git add */*
  10. #git commit -am 'update'
  11. #git push -f
  12. cd dist/spa/css
  13. for file in `ls *.css`; do sed -i 's/[.]block{display:block\!important}//g' $file; done
  14. cd ..
  15. #sed -i 's=[<]base href[=]//themes//custom//physics//mie-next// [>]==g' index.html
  16. cd ../..
  17. rsync -aue ssh --progress dist/spa/ physics@physics.ifmo.ru:/var/www/html/physicsifmoru/web/themes/custom/physics/mie
  18. echo
  19. cat dist/spa/index.html
  20. echo