aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/build_catalog_ui.sh
blob: 36f798513ac9acb5834e88a1a14d331565cd4d98 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh



### Set the node environment.
NODE_VERSION="v6.10.0"



### Set the NVM root dir
NVM_DIR=/home/${USER}/.nvm



echo "Set the node environment."
. "${NVM_DIR}/nvm.sh"
echo "OK."
echo ""



### Add newer c++ compiler.
if [ -f /opt/rh/devtoolset-4/enable ]; then
  . /opt/rh/devtoolset-4/enable
fi



### Set the node version manager version.
echo "Set the node version manager version."
nvm use ${NODE_VERSION}
echo "OK."
echo ""



### Run the Node package manager (NPM).
echo "Run the Node package manager (NPM)."
npm install
echo "OK."
echo ""



### Build the application.
echo "Build the application."
npm run build:prod
echo "OK."
echo ""