big update for deployment system

This commit is contained in:
tmshv committed 2016-01-05 00:48:49 +03:00
1 parent 2c443568e8
commit d3c7e444ea
2 files changed
+26 -12

No files matched your search

+10 -5
View File
@@ -1,14 +1,19 @@
#!/bin/sh
gunzip build.tar.gz
tar xf build.tar -C ~/art
rm build.tar
dir_path="$1"
build_file="$2"
port="$3"
cd $dir_path
gunzip -c $build_file | tar xopf -
#rm build.tar
cd ~/art
npm install --production --loglevel error
export NODE_ENV=production
export PORT=18010
export PORT=$port
#starting www
if forever restart bin/www.js; then