forked from DebaucheryLibrarian/traxxx
Added Umami to pm2 ecosystem file.
This commit is contained in:
parent
7d77e0603b
commit
bb1aa4aa55
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
analytics: {
|
||||
enabled: true,
|
||||
enabled: false,
|
||||
address: 'http://localhost:3000/script.js',
|
||||
siteId: '1b28ac3b-d229-43bf-aec9-75cf0a72a466',
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// const config = require('config');
|
||||
const config = require('config');
|
||||
|
||||
module.exports = {
|
||||
apps: [
|
||||
|
@ -14,5 +14,15 @@ module.exports = {
|
|||
NODE_ENV: 'production',
|
||||
},
|
||||
},
|
||||
...(config.analytics.enabled ? [{
|
||||
name: 'umami',
|
||||
script: 'npm start',
|
||||
cwd: process.env.UMAMI_DIR || '../umami',
|
||||
restart_delay: 3000,
|
||||
merge_logs: true,
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
},
|
||||
}] : []),
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue