deploy updated
This commit is contained in:
1 parent
edf5fbf4bd
commit
30dd018589
1 file changed
+2
-3
@@ -9,7 +9,7 @@ destpath="~/www/art.shburg.org"
|
|||||||
|
|
||||||
echo "Building..."
|
echo "Building..."
|
||||||
npm run out
|
npm run out
|
||||||
NODE_ENV=production gulp deploy
|
NODE_ENV=production npm run gulp deploy
|
||||||
|
|
||||||
echo "Packing $tarpath"
|
echo "Packing $tarpath"
|
||||||
env GZIP=-9 tar -czf ${tarpath} \
|
env GZIP=-9 tar -czf ${tarpath} \
|
||||||
@@ -24,8 +24,7 @@ env GZIP=-9 tar -czf ${tarpath} \
|
|||||||
.
|
.
|
||||||
|
|
||||||
echo "Uploading..."
|
echo "Uploading..."
|
||||||
#ssh h "rm -rf $destpath/*"
|
ssh hoster@${server} "rm -rf $destpath/public/*"
|
||||||
ssh h "rm -rf $destpath/public/*"
|
|
||||||
scp ${tarpath} hoster@${server}:${destpath}
|
scp ${tarpath} hoster@${server}:${destpath}
|
||||||
|
|
||||||
echo "Installing..."
|
echo "Installing..."
|
||||||
|
|||||||
Reference in new issue
Block a user