added db builder as a node file

This commit is contained in:
Martin Donnelly 2016-04-04 15:00:49 +01:00
parent f3a69e2ceb
commit 65ca406f6b

View File

@ -10,7 +10,7 @@ var dbAccount = require('./server/units/db-accounts')(db);
var exec = require('child_process').exec;
function prepare_db() {
exec('psql -Upostgres -d oBrand -f ./obrand.sql', function(err) {
exec('psql -Upostgres -d oBrand -h localhost -f ./obrand.sql', function(err) {
if (err !== null) {
console.log('exec error: ' + err);
}