Skip to content

Commit

Permalink
update script - testing
Browse files Browse the repository at this point in the history
  • Loading branch information
isra67 committed Sep 26, 2017
1 parent a70194a commit 512740a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ cd /root/app
## backup app file
cp -f public/storage/store.dat /root/tmp

## stash all changes
git reset --hard

## synchronize
#if [ -z "$1" ]; then
## git fetch https://github.com/isra67/indoorjs.git master
Expand All @@ -22,7 +25,7 @@ cp -f public/storage/store.dat /root/tmp
# git fetch https://isra67:[email protected]/isra67/indoorjs.git
#fi
#git reset --hard ##gh/master
#git clean -dn

if [ -z "$1" ]; then
# git pull --rebase https://github.com/isra67/indoorjs.git master
git pull --rebase https://github.com/isra67/indoorjs.git
Expand All @@ -32,11 +35,11 @@ else
fi
git clean -dn

## install NPM files
npm install --silent

## restore app file from backup
cp -f /root/tmp/store.dat public/storage

## install NPM files
npm install --silent

## save from cache
sync
#sync

0 comments on commit 512740a

Please sign in to comment.