Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 6fe212796b 1.230.1 2023-07-24 22:21:09 +02:00
DebaucheryLibrarian bb1aa4aa55 Added Umami to pm2 ecosystem file. 2023-07-24 22:21:05 +02:00
4 changed files with 15 additions and 5 deletions

View File

@ -31,7 +31,7 @@ module.exports = {
}, },
}, },
analytics: { analytics: {
enabled: true, enabled: false,
address: 'http://localhost:3000/script.js', address: 'http://localhost:3000/script.js',
siteId: '1b28ac3b-d229-43bf-aec9-75cf0a72a466', siteId: '1b28ac3b-d229-43bf-aec9-75cf0a72a466',
}, },

View File

@ -1,4 +1,4 @@
// const config = require('config'); const config = require('config');
module.exports = { module.exports = {
apps: [ apps: [
@ -14,5 +14,15 @@ module.exports = {
NODE_ENV: 'production', 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',
},
}] : []),
], ],
}; };

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.230.0", "version": "1.230.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.230.0", "version": "1.230.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.230.0", "version": "1.230.1",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {