deploying update and speed imporvements
This commit is contained in:
1 parent
d178c1220f
commit
5dee8fd44a
2 files changed
+17
-10
No files matched your search
@@ -1,16 +1,22 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
tar cf ~/www-build.tar \
|
tarfile=build.tar.gz
|
||||||
|
tarpath=$TMPDIR$tarfile
|
||||||
|
|
||||||
|
env GZIP=-9 tar -czf $tarpath \
|
||||||
|
--disable-copyfile \
|
||||||
--exclude=node_modules \
|
--exclude=node_modules \
|
||||||
--exclude=bower_components \
|
|
||||||
--exclude=.git \
|
--exclude=.git \
|
||||||
--exclude=.idea \
|
--exclude=.idea \
|
||||||
|
--exclude=.DS_Store \
|
||||||
--exclude=deploy.sh \
|
--exclude=deploy.sh \
|
||||||
--exclude=install.sh .
|
--exclude=install.sh .
|
||||||
|
|
||||||
|
echo "build file: $tarpath"
|
||||||
|
|
||||||
ssh shburg.et "rm -rf art/*"
|
ssh shburg.et "rm -rf art/*"
|
||||||
scp ~/www-build.tar shburg@37.139.6.120:~
|
scp $tarpath shburg@37.139.6.120:~
|
||||||
scp install.sh shburg@37.139.6.120:~
|
scp install.sh shburg@37.139.6.120:~
|
||||||
ssh shburg.et "./install.sh && rm ./install.sh"
|
ssh shburg.et "./install.sh"
|
||||||
rm ~/www-build.tar
|
rm $tarpath
|
||||||
echo "art.shburg.org deployment completed successfully"
|
echo "art.shlisselburg.org deployment completed successfully"
|
||||||
+5
-4
@@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
gunzip build.tar.gz
|
||||||
|
tar xf build.tar -C ~/art
|
||||||
|
rm build.tar
|
||||||
|
|
||||||
cd ~/art
|
cd ~/art
|
||||||
tar xvf ../www-build.tar
|
npm install --production --loglevel error
|
||||||
rm ../www-build.tar
|
|
||||||
npm install --production
|
|
||||||
node_modules/bower/bin/bower install
|
|
||||||
|
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
export PORT=18010
|
export PORT=18010
|
||||||
|
|||||||
Reference in new issue
Block a user