-
Notifications
You must be signed in to change notification settings - Fork 27
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
1 parent
e05160c
commit cc9278d
Showing
2 changed files
with
26 additions
and
1 deletion.
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
These scripts are used to compile all of the txt files in the samples folder into a json file. | ||
Copy & modify scripts are used to compile all of the txt files in the samples folder into a json file. | ||
|
||
Rebuild.sh file is used to clean build PathwayMapper app at unstable. |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
PATH=/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/home/ivis/pathwayMapper/pathway-mapper | ||
|
||
#Seperator | ||
echo -e "\n--------------" >> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log | ||
|
||
#Logging rebuild time | ||
date >> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log | ||
|
||
#update PM | ||
echo -e "\nUpdating PathwayMapper..." &>> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log | ||
git fetch --all &>> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log | ||
git reset --hard origin/unstable &>> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log | ||
|
||
#update npm packages | ||
echo -e "\nUpdating npm packages..." &>> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log | ||
yarn install | ||
|
||
#start | ||
echo -e "\nBuilding PM..." &>> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log | ||
yarn buildLib:prod && yarn buildApp:prod | ||
|
||
echo -e "\nDone!" &>> /home/ivis/pathwayMapper/pathway-mapper/rebuild.log |