-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuildFrontendStage2.sh
More file actions
executable file
·44 lines (34 loc) · 1.08 KB
/
buildFrontendStage2.sh
File metadata and controls
executable file
·44 lines (34 loc) · 1.08 KB
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
set -e
set -x
SEABUG=$PWD
cd $SEABUG/seabug-contracts
npm install
make run-build
cd $SEABUG/nft-marketplace
npm install
# This is a replacement of npm link. npm link is problematic on immutable file systems
rm -rf $SEABUG/nft-marketplace/node_modules/seabug-contracts
mkdir -p $SEABUG/nft-marketplace/node_modules/
ln -s $SEABUG/seabug-contracts \
$SEABUG/nft-marketplace/node_modules/seabug-contracts
cd $SEABUG/nft-marketplace
rm -f .env
cat <<EOT >> .env
SKIP_PREFLIGHT_CHECK=true
NODE_PATH=./src
REACT_APP_API_BASE_URL=http://nft-mp-svr.localho.st:8080
REACT_APP_CTL_LOG_LEVEL=Trace
REACT_APP_CTL_SERVER_HOST=ctl.localho.st
REACT_APP_CTL_SERVER_PORT=8080
REACT_APP_CTL_SERVER_SECURE_CONN=false
REACT_APP_CTL_OGMIOS_HOST=localho.st
REACT_APP_CTL_OGMIOS_PORT=1337
REACT_APP_CTL_OGMIOS_SECURE_CONN=false
REACT_APP_CTL_DATUM_CACHE_HOST=localho.st
REACT_APP_CTL_DATUM_CACHE_PORT=9999
REACT_APP_CTL_DATUM_CACHE_SECURE_CONN=false
REACT_APP_CTL_NETWORK_ID=0
REACT_APP_CTL_PROJECT_ID=previewoXa2yw1U0z39X4VmTs6hstw4c6cPx1LN
REACT_APP_IPFS_BASE_URL=https://cloudflare-ipfs.com/ipfs/
EOT
npm run build