deploy/install scripts update
This commit is contained in:
1 parent
ba6ab4a4e3
commit
45dd6f87f9
2 files changed
+12
-11
No files matched your search
+5
-5
@@ -4,21 +4,21 @@ dir_path="$1"
|
||||
build_file="$2"
|
||||
port="$3"
|
||||
|
||||
cd $dir_path
|
||||
cd ${dir_path}
|
||||
|
||||
gunzip -c $build_file | tar xopf -
|
||||
gunzip -c ${build_file} | tar xopf -
|
||||
|
||||
#rm build.tar
|
||||
|
||||
npm install --production --loglevel error
|
||||
|
||||
export NODE_ENV=production
|
||||
export PORT=$port
|
||||
export PORT=${port}
|
||||
|
||||
#starting www
|
||||
if forever restart bin/www.js; then
|
||||
if forever restart src/bin/www.js; then
|
||||
echo www.js restarted
|
||||
else
|
||||
forever start bin/www.js
|
||||
forever start src/bin/www.js
|
||||
echo www.js started
|
||||
fi
|
||||
Reference in new issue
Block a user