-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
37 lines (37 loc) · 923 Bytes
/
ecosystem.config.js
File metadata and controls
37 lines (37 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
apps: [
{
name: 'SmartFact',
version: '0.0.01',
script: './src/server.js',
watch: true,
ignore_watch: [
// pm2 delete 0;pm2 startOrReload ecosystem.config.js --update-env; pm2 logs --raw
// ou
// pm2 restart 0
'node_modules',
'./node_modules',
'./public',
'./docs',
'./.git',
'./visits',
'./datas'
],
max_memory_restart: '300M',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'development',
PORT: 10001,
watch: true,
},
env_production: {
NODE_ENV: 'production',
PORT: 10001,
watch: false // Désactiver watch en production
},
// Les logs seront gérés par défaut par PM2 dans C:\Users\VotreNom\.pm2\logs
// Utilisez `pm2 logs SmartFact` pour les consulter.
},
],
};