mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrand-admin-server.git
synced 2025-01-10 20:55:07 +00:00
added db builder as a node file
This commit is contained in:
parent
f3a69e2ceb
commit
65ca406f6b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user