-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |