Main repository for Devuan's www.devuan.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.
 
 
 
 
 

18 lines
362 B

  1. #!/bin/sh
  2. #
  3. ## Deploy generated files to the server
  4. #
  5. [ -d ./public ] || exit 1
  6. bundle exec middleman build && \
  7. echo "-*- Synchronizing with server..." && \
  8. rsync -avX public wdo-deploy:beta.devuan.org/
  9. # rsync -avX --delete public wdo-deploy:beta.devuan.org/
  10. if [ $? -eq 0 ]; then
  11. echo "Web updated."
  12. else
  13. echo "Something went wrong."
  14. fi