|
|
@ -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'); |
|
|
|