Browse Source

Only rsync successful builds

revert-177e550a
hellekin 8 years ago
parent
commit
2dd31fa30a
  1. 8
      bin/sync

8
bin/sync

@ -5,11 +5,9 @@
[ -d ./public ] || exit 1
bundle exec middleman build
echo "-*- Synchronizing with server..."
rsync -aX public wdo:www/
bundle exec middleman build && \
echo "-*- Synchronizing with server..." && \
rsync -avX public wdo:www/
if [ $? -eq 0 ]; then
echo "Web updated."

Loading…
Cancel
Save