cc-backend/startDemo.sh

20 lines
437 B
Bash
Raw Normal View History

2022-03-16 10:09:28 +01:00
#!/bin/sh
mkdir ./var
cd ./var
2022-09-21 15:10:46 +02:00
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
2022-03-16 10:09:28 +01:00
tar xJf job-archive.tar.xz
rm ./job-archive.tar.xz
touch ./job.db
cd ../web/frontend
2022-03-16 10:09:28 +01:00
yarn install
yarn build
cd ../..
2022-06-23 18:27:42 +02:00
cp ./configs/env-template.txt .env
2022-09-21 15:10:46 +02:00
cp ./docs/config.json config.json
2022-06-23 18:27:42 +02:00
go build ./cmd/cc-backend
2022-03-16 10:09:28 +01:00
2022-09-21 15:10:46 +02:00
./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev