23 lines
499 B
Bash
Executable File
23 lines
499 B
Bash
Executable File
#!/bin/sh
|
|
|
|
tarfile=build.tar.gz
|
|
tarpath=$TMPDIR$tarfile
|
|
|
|
env GZIP=-9 tar -czf $tarpath \
|
|
--disable-copyfile \
|
|
--exclude=node_modules \
|
|
--exclude=.git \
|
|
--exclude=.idea \
|
|
--exclude=.DS_Store \
|
|
--exclude=deploy.sh \
|
|
--exclude=install.sh .
|
|
|
|
echo "build file: $tarpath"
|
|
|
|
ssh shburg.et "rm -rf art/*"
|
|
scp $tarpath shburg@37.139.6.120:~
|
|
scp install.sh shburg@37.139.6.120:~
|
|
ssh shburg.et "./install.sh"
|
|
rm $tarpath
|
|
echo "art.shlisselburg.org deployment completed successfully"
|