Instagram Service deployment update
This commit is contained in:
1 parent
f2d1f71064
commit
d0878ec296
3 files changed
+16
-9
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user