old configs removed

This commit is contained in:
tmshv committed 2018-05-23 01:54:07 +03:00
1 parent 3bee90d1e9
commit 01e2df75d7
2 files changed
-37

No files matched your search

-1
View File
@@ -1 +0,0 @@
6.9.1
-36
View File
@@ -1,36 +0,0 @@
#!/bin/sh
echo "Deploying art.shburg.org"
server="art.shlisselburg.org"
tarfile="build.tar.gz"
tarpath=$TMPDIR${tarfile}
destpath="~/www/art.shburg.org"
echo "Building..."
npm run out
NODE_ENV=production npm run gulp deploy
echo "Packing $tarpath"
env GZIP=-9 tar -czf ${tarpath} \
--disable-copyfile \
--exclude=node_modules \
--exclude=.git \
--exclude=.idea \
--exclude=.DS_Store \
--exclude=src \
--exclude=deploy.sh \
--exclude=install.sh \
.
echo "Uploading..."
ssh hoster@${server} "rm -rf $destpath/public/*"
scp ${tarpath} hoster@${server}:${destpath}
echo "Installing..."
ssh hoster@${server} "bash -s" -- < ./install.sh ${destpath} ${tarfile}
echo "Clear..."
rm ${tarpath}
echo "Done"