Complete overhaul - changed to pm2-runtime and the excellent prerender-plugin-fscache. Working excellently!

This commit is contained in:
2025-02-22 04:05:47 -05:00
parent 85336a52f9
commit b28d11474e
7 changed files with 82 additions and 363 deletions
+7
View File
@@ -0,0 +1,7 @@
module.exports = [{
script: './server.js', // Your main Prerender server
name: 'prerender-app',
cwd: '/home/node',
exec_mode: 'cluster',
instances: process.env.PHANTOM_WORKERS || 3, // Adjust based on your CPU cores
}];