From cb611e1cc9bd58e6c08130a4d23e13178860c428 Mon Sep 17 00:00:00 2001 From: Jkat <601027+Jkat@users.noreply.github.com> Date: Fri, 4 Oct 2019 14:51:40 -0400 Subject: [PATCH] updatig postdeploy script for Heroku --- htdocs/postdeploy.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/postdeploy.php b/htdocs/postdeploy.php index bec1be75fab..3acf5039dc8 100644 --- a/htdocs/postdeploy.php +++ b/htdocs/postdeploy.php @@ -42,6 +42,10 @@ $sqls = file_get_contents($path_to_file); $conn->exec($sqls); +$path_to_file = '../SQL/0000-00-05-ElectrophysiologyTables.sql'; +$sqls = file_get_contents($path_to_file); +$conn->exec($sqls); + $pw = password_hash($password, PASSWORD_DEFAULT); $conn->query( @@ -50,15 +54,15 @@ ); $RootDir = dirname(getcwd()); $conn->query( - "UPDATE Config SET Value='$RootDir/' + "UPDATE Config SET Value='$RootDir/' WHERE ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='base')" ); $conn->query( - "UPDATE Config SET Value='' + "UPDATE Config SET Value='' WHERE ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='url')" ); $conn->query( - "UPDATE Config SET Value='' + "UPDATE Config SET Value='' WHERE ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='host')" ); @@ -78,5 +82,3 @@ file_put_contents('../project/config.xml', $file_contents); header("Location: /"); - -