Поправки конфигов
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
const path = require('path');
|
const pckg = require('../../package.json');
|
||||||
const fs = require('fs');
|
const execPath = __dirname + '/..';
|
||||||
|
|
||||||
const packageObj = JSON.parse(fs.readFileSync(__dirname + '/../../package.json', 'utf8'));
|
|
||||||
const execPath = path.dirname(process.execPath);
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
branch: 'base',
|
branch: 'base',
|
||||||
@@ -15,7 +12,7 @@ module.exports = {
|
|||||||
port: '33080',
|
port: '33080',
|
||||||
ip: '127.0.0.1',
|
ip: '127.0.0.1',
|
||||||
|
|
||||||
version: packageObj.version,
|
version: pckg.version,
|
||||||
name: packageObj.name,
|
name: pckg.name,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
const branchFilename = __dirname + '/../application_env';
|
const branchFilename = __dirname + '/application_env';
|
||||||
|
|
||||||
let branch = 'production';
|
let branch = 'production';
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
|
const path = require('path');
|
||||||
const base = require('./base');
|
const base = require('./base');
|
||||||
|
|
||||||
|
const execPath = path.dirname(process.execPath);
|
||||||
|
|
||||||
module.exports = Object.assign({}, base, {
|
module.exports = Object.assign({}, base, {
|
||||||
branch: 'production',
|
branch: 'production',
|
||||||
|
tempDir: execPath + '/tmp',
|
||||||
|
logDir: execPath + '/log',
|
||||||
|
dataDir: execPath + '/data',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user