cc-backend/startDemo.sh

33 lines
769 B
Bash
Raw Normal View History

2022-03-16 10:09:28 +01:00
#!/bin/sh
if [ -d './var' ]; then
echo 'Directory ./var already exists! Skipping initialization.'
./cc-backend --server --dev
else
mkdir ./var
cd ./var
2022-03-16 10:09:28 +01:00
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
tar xJf job-archive-dev.tar.xz
rm ./job-archive-dev.tar.xz
2022-03-16 10:09:28 +01:00
touch ./job.db
cd ../web/frontend
yarn install
yarn build
2022-03-16 10:09:28 +01:00
cd ../..
cp ./configs/env-template.txt .env
cp ./docs/config.json config.json
go build ./cmd/cc-backend
2023-02-28 09:33:55 +01:00
<<<<<<< Updated upstream
./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev
fi
2022-03-16 10:09:28 +01:00
2023-02-28 09:33:55 +01:00
=======
./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev
fi
>>>>>>> Stashed changes