Include ngsplanner main database in setup environment file.

dependabot/npm_and_yarn/server/tar-4.4.19
sigonasr2, Sig, Sigo 3 years ago
parent 64e6548bda
commit 2536ec10fc
  1. 4
      setupTestEnvironment

@ -7,9 +7,13 @@ touch frontend/.env
cp -r ../ngsplanner_backend/* server2
cp init.sql 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 "\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
Loading…
Cancel
Save