NEXT craftinamerica.org. Base setup for headless wordpress https://www.craftinamerica.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. printf "\n\nStarting post-receive…\n"
  3. printf "===============================\n"
  4. cd /opt/staging/vue-wp.git
  5. printf "\n*------------------------------\n"
  6. printf "* POST-RECEIVE: git checkout… -\n"
  7. printf "*------------------------------\n"
  8. printf "Step 1 of 3\n\n"
  9. git --git-dir=/opt/staging/vue-wp.git --work-tree=/opt/staging/vue-wp.git checkout master -f
  10. printf "\n*------------------------------\n"
  11. printf "* POST-RECEIVE: npm install… --\n"
  12. printf "*------------------------------\n"
  13. printf "Step 2 of 3\n\n"
  14. cd /opt/staging/vue-wp.git/vue-theme && npm install
  15. printf "\n*------------------------------\n"
  16. printf "* POST-RECEIVE: building… -----\n"
  17. printf "*------------------------------\n"
  18. printf "Step 3 of 3\n\n"
  19. npm run build
  20. printf "\n*-----------------------------\n"
  21. printf "* POST-RECEIVE: → SUCCESS ----\n"
  22. printf "*-----------------------------\n"
  23. printf "==============================\n\n"