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

-1
View File
@@ -29,7 +29,6 @@ env GZIP=-9 tar -czf ${tarpath} \
echo "Build file: $tarpath" echo "Build file: $tarpath"
#ssh h "rm -rf $destpath/*"
scp ${tarpath} hoster@${server}:${destpath} scp ${tarpath} hoster@${server}:${destpath}
echo "Build file successfully uploaded on ${server}" echo "Build file successfully uploaded on ${server}"
+8
View File
@@ -0,0 +1,8 @@
{
"uid": "hudozka-instagram",
"append": true,
"watch": false,
"script": "index.js",
"sourceDir": "/home/hoster/www/art.shburg.org/services/instagram/out",
"wordingDir": "/home/hoster/www/art.shburg.org/services/instagram"
}
+8 -8
View File
@@ -2,16 +2,16 @@
dir_path="$1" dir_path="$1"
build_file="$2" build_file="$2"
script="out/index.js" app="hudozka-instagram"
script="forever.json"
cd ${dir_path} cd ${dir_path}
gunzip -c ${build_file} | tar xopf - gunzip -c ${build_file} | tar xopf -
npm install --production --loglevel error npm install --production --loglevel error
#starting www if forever restart ${app}; then
#if forever restart ${script}; then echo Instagram Microservice restarted
# echo Instagram Microservice restarted else
#else forever start ${script}
# forever start ${script} echo Instagram Microservice started
# echo Instagram Microservice started fi
#fi