-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
28 lines (25 loc) · 953 Bytes
/
run.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
echo '* Running <run.sh>...'
echo "* Current working directory: $(pwd)"
echo "* Current node/npm versions: node $(node --version); npm $(npm --version)"
echo "* Current fe/be branches: $VITE_FE_BRANCH; $VITE_BE_BRANCH"
if [ ! -e node_modules ]; then
echo '* No node_modules/ dir found, installing dependencies...'
npm install --no-fund
echo '* Dependencies installed'
fi
echo '* Updating/downloading simdata/models/skybox files...'
cd public
wget -c -r -erobots=off -q -nH --cut-dirs=1 --no-parent \
--accept="*.gz" \
https://simoc.space/download/simdata/
echo '* Simdata files downloaded to <public/simdata>'
cd ..
cd src/assets
wget -c -r -erobots=off -q -nH --cut-dirs=1 --no-parent \
--accept="*.glb,*.jpg" \
https://simoc.space/download/models/ \
https://simoc.space/download/skybox/
echo '* Models and skybox files downloaded to <src/assets>'
cd ../..
echo '* To start the dev server use: npm run dev'
/bin/bash