A suite to track Project Diva score statistics and ratings / D4DJ event data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
projectdivar/setupTestEnvironment

26 lines
1.0 KiB

cd ..
git clone https://github.com/sigonasr2/ngsplanner.git
git clone https://github.com/sigonasr2/ngsplanner_backend.git
cd projectdivar
touch server/.env.twitter
touch frontend/.env
cp -r ../ngsplanner_backend/* server2
cp init.sql init2.sql
echo "" >> init2.sql
echo "\c postgres">>init2.sql
echo "" >> init2.sql
echo "create table password(password text);" >> init2.sql
echo "insert into password(password) values('admin')" >> init2.sql
echo "" >> init2.sql
echo "create database ngsplanner2;">>init2.sql
echo "create database ngsplanner;">>init2.sql
echo "\c ngsplanner2">>init2.sql
cat ../ngsplanner_backend/ngsplanner_schema.sql>>init2.sql
cat ../ngsplanner_backend/ngsplanner_seed.sql>>init2.sql
echo "" >> init2.sql
echo "\c ngsplanner">>init2.sql
cat ../ngsplanner_backend/ngsplanner_schema.sql>>init2.sql
cat ../ngsplanner_backend/ngsplanner_seed.sql>>init2.sql
echo REACT_APP_GITPOD_WORKSPACE_URL=$GITPOD_WORKSPACE_URL/ngsplanner >> ../ngsplanner/.env
sed -i 's/https:\/\//https:\/\/4501-/g' ../ngsplanner/.env
docker-compose up -d