deploy.sh 776 B

12345678910111213141516171819202122232425
  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 ~/coding/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. # # physics.itmo.ru
  13. # cd dist/spa/css
  14. # for file in `ls *.css`; do sed -i 's/[.]block{display:block\!important}//g' $file; done
  15. # cd ..
  16. # #sed -i 's=[<]base href[=]//themes//custom//physics//mie-next// [>]==g' index.html
  17. # cd ../..
  18. # rsync -aue ssh --progress dist/spa/ physics@physics.ifmo.ru:/var/www/html/physicsifmoru/web/themes/custom/physics/mie
  19. # echo
  20. # cat dist/spa/index.html
  21. # echo