Cleanup roots + new readme #1

Merged
tmshv merged 3 commits from dev into master 2018-05-22 22:57:51 +00:00
2 changed files with 0 additions and 37 deletions
Showing only changes of commit 01e2df75d7 - Show all commits

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"