Remove rsync_ui.sh and deploy.sh
Those files are no longer needed now that we deploy our source files inside the Docker image. See Blender Cloud commit 94ef616593e85.
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "==========================================================================="
|
|
||||||
echo "Dummy deploy script for people with a 'git pp' alias to push to production."
|
|
||||||
echo "Run deploy script on your server project."
|
|
||||||
echo "When done, press [ENTER] to stop this script."
|
|
||||||
read dummy
|
|
51
rsync_ui.sh
51
rsync_ui.sh
@@ -1,51 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e # error out when one of the commands in the script errors.
|
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
echo "Usage: $0 {host-to-deploy-to}" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
DEPLOYHOST="$1"
|
|
||||||
|
|
||||||
# macOS does not support readlink -f, so we use greadlink instead
|
|
||||||
if [[ `uname` == 'Darwin' ]]; then
|
|
||||||
command -v greadlink 2>/dev/null 2>&1 || { echo >&2 "Install greadlink using brew."; exit 1; }
|
|
||||||
readlink='greadlink'
|
|
||||||
else
|
|
||||||
readlink='readlink'
|
|
||||||
fi
|
|
||||||
|
|
||||||
ATTRACT_DIR="$(dirname "$($readlink -f "$0")")"
|
|
||||||
if [ ! -d "$ATTRACT_DIR" ]; then
|
|
||||||
echo "Unable to find Attract dir '$ATTRACT_DIR'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
ASSETS="$ATTRACT_DIR/attract/static/assets/"
|
|
||||||
TEMPLATES="$ATTRACT_DIR/attract/templates/attract"
|
|
||||||
|
|
||||||
if [ ! -d "$ASSETS" ]; then
|
|
||||||
echo "Unable to find assets dir $ASSETS"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd $ATTRACT_DIR
|
|
||||||
if [ $(git rev-parse --abbrev-ref HEAD) != "production" ]; then
|
|
||||||
echo "You are NOT on the production branch, refusing to rsync_ui." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "*** GULPA GULPA ***"
|
|
||||||
./gulp --production
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "*** SYNCING ASSETS ***"
|
|
||||||
# Exclude files managed by Git.
|
|
||||||
rsync -avh $ASSETS --exclude js/vendor/ root@${DEPLOYHOST}:/data/git/attract/attract/static/assets/
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "*** SYNCING TEMPLATES ***"
|
|
||||||
rsync -avh $TEMPLATES root@${DEPLOYHOST}:/data/git/attract/attract/templates/
|
|
Reference in New Issue
Block a user