From 75719f272e99e1d5f3d9b9978eb072821f902c8e Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 17 Aug 2021 01:05:48 +0000 Subject: [PATCH] Fix up setupTest Environment --- init2.sql | 3 ++- setupTestEnvironment | 6 ++++++ start | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/init2.sql b/init2.sql index 851ba6b..a31ff35 100644 --- a/init2.sql +++ b/init2.sql @@ -1423,4 +1423,5 @@ insert into class_skill_data(name,class_skill_id,dependency,level,effect,duratio values('Assault Charge Advent',(SELECT id from class_skill WHERE name='Assault Charge Advent' limit 1),'',1,'Effect Name',30,24,1.0,1.1,false,0.8,'',0,0,0,0,0,0,0.6,0,0); insert into skill_tree_data(class_id,data,skill_data,line_color,line_width,gridsizex,gridsizey,gridpaddingx,gridpaddingy,halflineheight) - values((select id from class where name='Hunter'),'□ □ ,└□─┘□□, │ ││, │ □│, □─□┼□, □ ','','#000000',3,80,60,10,10,60); \ No newline at end of file + values((select id from class where name='Hunter'),'□ □ ,└□─┘□□, │ ││, │ □│, □─□┼□, □ ','','#000000',3,80,60,10,10,60); + diff --git a/setupTestEnvironment b/setupTestEnvironment index 77d587c..2bfa99d 100755 --- a/setupTestEnvironment +++ b/setupTestEnvironment @@ -6,6 +6,12 @@ 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 diff --git a/start b/start index fa3a182..afd542d 100755 --- a/start +++ b/start @@ -1,5 +1,7 @@ cd /workspace/projectdivar +docker-compose down docker-compose up -d cd ../ngsplanner npm install -npm start \ No newline at end of file +npm start +cd /workspace/projectdivar \ No newline at end of file