This commit is contained in:
Martin Donnelly 2016-08-12 10:19:58 +01:00
parent 15ebc0929c
commit 410ebd5beb

View File

@ -9,7 +9,7 @@ var exec = require('child_process').exec;
function prepare_db() {
exec('psql -Upostgres -d mdot -h localhost -f ./mdot.sql', function(err) {
exec('psql -Upostgres -h localhost -f ./mdot.sql', function(err) {
if (err !== null) {
console.log('exec error: ' + err);
return -1;
@ -35,4 +35,4 @@ function createDB() {
}
createDB();
prepare_db();