]> git.wincent.com - hextrapolate.git/blobdiff - deploy.sh
Update fancy deploy script
[hextrapolate.git] / deploy.sh
index 878aa72bd4a0cceb62786542788313e4dbfa2b1e..56e7c94c0a9b10711f84dd6cac38a91e1e8dd963 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -6,11 +6,8 @@ declare -r HOST=hex.wincent.com
 declare -r BASE=/var/www/hex.wincent.com/public_html
 
 # Upload files to staging area.
 declare -r BASE=/var/www/hex.wincent.com/public_html
 
 # Upload files to staging area.
-ssh $HOST mkdir -p hextrapolate/dist
-scp index.html $HOST:hextrapolate
-scp dist/bundle.js dist/bundle.js.map $HOST:hextrapolate/dist/
+ssh $HOST mkdir -p hextrapolate
+scp -r build/* $HOST:hextrapolate
 
 
-# Move files into final position.
-ssh -t $HOST sudo mkdir -p $BASE/dist
-ssh -t $HOST sudo cp hextrapolate/index.html $BASE/
-ssh -t $HOST sudo cp hextrapolate/dist/bundle.js hextrapolate/dist/bundle.js.map $BASE/dist/
+# Mirror files over to final position.
+ssh -t $HOST sudo rsync -va hextrapolate/ $BASE/