Поправки путей к директориям
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const pckg = require('../../package.json');
|
const pckg = require('../../package.json');
|
||||||
const execPath = path.resolve(__dirname, '..');
|
|
||||||
|
const execDir = path.resolve(__dirname, '..');
|
||||||
|
const dataDir = `${execDir}/data`;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
branch: 'base',
|
branch: 'base',
|
||||||
tempDir: execPath + '/tmp',
|
dataDir: dataDir,
|
||||||
logDir: execPath + '/log',
|
tempDir: `${dataDir}/tmp`,
|
||||||
dataDir: execPath + '/data',
|
logDir: `${dataDir}/log`,
|
||||||
publicDir: execPath + '/public',
|
publicDir: `${execDir}/public`,
|
||||||
dbFileName: 'db.sqlite',
|
dbFileName: 'db.sqlite',
|
||||||
loggingEnabled: true,
|
loggingEnabled: true,
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,13 @@ const path = require('path');
|
|||||||
const base = require('./base');
|
const base = require('./base');
|
||||||
|
|
||||||
const execPath = path.dirname(process.execPath);
|
const execPath = path.dirname(process.execPath);
|
||||||
|
const dataDir = `${execDir}/data`;
|
||||||
|
|
||||||
module.exports = Object.assign({}, base, {
|
module.exports = Object.assign({}, base, {
|
||||||
branch: 'production',
|
branch: 'production',
|
||||||
tempDir: execPath + '/tmp',
|
dataDir: dataDir,
|
||||||
logDir: execPath + '/log',
|
tempDir: `${dataDir}/tmp`,
|
||||||
dataDir: execPath + '/data',
|
logDir: `${dataDir}/log`,
|
||||||
publicDir: execPath + '/public',
|
publicDir: `${execDir}/public`,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user