deploy updated

This commit is contained in:
tmshv committed 2016-11-12 05:18:30 +03:00
1 parent edf5fbf4bd
commit 30dd018589
1 file changed
+2 -3
+2 -3
View File
@@ -9,7 +9,7 @@ destpath="~/www/art.shburg.org"
echo "Building..."
npm run out
NODE_ENV=production gulp deploy
NODE_ENV=production npm run gulp deploy
echo "Packing $tarpath"
env GZIP=-9 tar -czf ${tarpath} \
@@ -24,8 +24,7 @@ env GZIP=-9 tar -czf ${tarpath} \
.
echo "Uploading..."
#ssh h "rm -rf $destpath/*"
ssh h "rm -rf $destpath/public/*"
ssh hoster@${server} "rm -rf $destpath/public/*"
scp ${tarpath} hoster@${server}:${destpath}
echo "Installing..."