Instagram Service deployment update

This commit is contained in:
tmshv committed 2016-03-26 15:11:39 +03:00
1 parent f2d1f71064
commit d0878ec296
3 files changed
+16 -9

No files matched your search

+8 -8
View File
@@ -2,16 +2,16 @@
dir_path="$1"
build_file="$2"
script="out/index.js"
app="hudozka-instagram"
script="forever.json"
cd ${dir_path}
gunzip -c ${build_file} | tar xopf -
npm install --production --loglevel error
#starting www
#if forever restart ${script}; then
# echo Instagram Microservice restarted
#else
# forever start ${script}
# echo Instagram Microservice started
#fi
if forever restart ${app}; then
echo Instagram Microservice restarted
else
forever start ${script}
echo Instagram Microservice started
fi