Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating postdeploy script for Heroku #5275

Merged
merged 1 commit into from
Dec 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions htdocs/postdeploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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')"
);

Expand All @@ -78,5 +82,3 @@
file_put_contents('../project/config.xml', $file_contents);

header("Location: /");