-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·39 lines (32 loc) · 1.2 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# execute via: /opt/jcinfo/build.sh | tee -a "/opt/jcinfo/build.log"
# -a means append
echo ""
echo ""
echo ""
echo "**********************************************************************"
echo "$(TZ=America/Los_Angeles date) - Download from GitHub commencing..."
echo "**********************************************************************"
cd /opt/jcinfo
git fetch origin main
git reset --hard FETCH_HEAD
echo ""
echo "**********************************************************************"
echo "$(TZ=America/Los_Angeles date) - Build front end commencing..."
echo "**********************************************************************"
cd frontend
echo "*** npm i"
npm i
echo "*** npm run build"
npm run build
echo ""
echo "**********************************************************************"
echo "$(TZ=America/Los_Angeles date) - Build back end commencing..."
echo "**********************************************************************"
cd ../backend
echo "*** ./build/sh"
./build.sh
echo ""
echo "**********************************************************************"
echo "$(TZ=America/Los_Angeles date) - Build finished."
echo "**********************************************************************"
echo ""