From 2536ec10fcdf33b2c7eb02c3e9818d76c8958381 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Thu, 12 Aug 2021 07:17:07 +0000 Subject: [PATCH] Include ngsplanner main database in setup environment file. --- setupTestEnvironment | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setupTestEnvironment b/setupTestEnvironment index d978ba4..d9f377f 100755 --- a/setupTestEnvironment +++ b/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 \ No newline at end of file