use dirname
This commit is contained in:
parent
22d502b090
commit
ed2f5a449c
1 changed files with 6 additions and 4 deletions
|
|
@ -1,8 +1,10 @@
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
apps: [{
|
apps: [{
|
||||||
name: 'floter-design',
|
name: 'floter-design',
|
||||||
script: './build/index.js',
|
script: path.join(__dirname, 'build/index.js'),
|
||||||
cwd: '/floter-design',
|
cwd: __dirname,
|
||||||
instances: 1,
|
instances: 1,
|
||||||
exec_mode: 'fork',
|
exec_mode: 'fork',
|
||||||
env: {
|
env: {
|
||||||
|
|
@ -10,8 +12,8 @@ module.exports = {
|
||||||
PORT: 3001,
|
PORT: 3001,
|
||||||
HOST: '0.0.0.0'
|
HOST: '0.0.0.0'
|
||||||
},
|
},
|
||||||
error_file: './logs/err.log',
|
error_file: path.join(__dirname, 'logs/err.log'),
|
||||||
out_file: './logs/out.log',
|
out_file: path.join(__dirname, 'logs/out.log'),
|
||||||
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||||
merge_logs: true,
|
merge_logs: true,
|
||||||
autorestart: true,
|
autorestart: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue