Skip to content

Commit

Permalink
Add rebuild script for unstable PM
Browse files Browse the repository at this point in the history
  • Loading branch information
msalihaltun committed Jun 17, 2021
1 parent e05160c commit cc9278d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/README.md
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.
23 changes: 23 additions & 0 deletions scripts/rebuild.sh
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

0 comments on commit cc9278d

Please sign in to comment.