Browse Source

Initdb script respects config file change

stuff
xcps 7 years ago
parent
commit
1819eef965
  1. 4
      bin/initdb.js

4
bin/initdb.js

@ -1,8 +1,8 @@
#!/usr/bin/env node #!/usr/bin/env node
var exec = require('child_process').exec; var exec = require('child_process').exec;
var models = require('../models'); var models = require('../models');
var env = process.env.NODE_ENV || 'development'; var env = require('../config/config.json')['env'] || 'development';
var config = require(__dirname + '/../config/config.json')[env]; var config = require(__dirname + '/../config/config.json')['database'][env];
if (process.argv.length < 4) { if (process.argv.length < 4) {
console.log('Provide root user name and password for mysql'); console.log('Provide root user name and password for mysql');

Loading…
Cancel
Save