mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-29 23:48:11 +01:00
30 lines
826 B
Bash
Executable File
30 lines
826 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e;
|
|
|
|
echo "$(tput setaf 136)"
|
|
echo " Starting assets CDN "
|
|
echo "============================================="
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
gulp s3:assets
|
|
gulp cdn
|
|
|
|
echo "$(tput setaf 64)" # green
|
|
echo "---------------------------------------------"
|
|
echo " ✓ done assets CDN"
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
|
|
echo "$(tput setaf 136)"
|
|
echo " Starting rsync deployment "
|
|
echo "============================================="
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
rsync --recursive --delete --delete-excluded --checksum --verbose -e "ssh" ~/src/github.com/kremalicious/kremalicious3/_site/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
|
|
|
|
echo "$(tput setaf 64)" # green
|
|
echo "---------------------------------------------"
|
|
echo " ✓ done rsync deployment "
|
|
echo "$(tput sgr0)" # reset
|