mirror of
https://github.com/complexcaresolutions/whatsapp-bot.git
synced 2026-03-17 22:04:04 +00:00
fix: add --env-file=.env to PM2 node_args
Node.js doesn't load .env files automatically. Using Node 22's native --env-file flag instead of adding dotenv dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4b665f8909
commit
1b0fafda24
1 changed files with 1 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ module.exports = {
|
||||||
{
|
{
|
||||||
name: 'whatsapp-bot',
|
name: 'whatsapp-bot',
|
||||||
script: 'dist/server.js',
|
script: 'dist/server.js',
|
||||||
|
node_args: '--env-file=.env',
|
||||||
instances: 1,
|
instances: 1,
|
||||||
exec_mode: 'fork',
|
exec_mode: 'fork',
|
||||||
autorestart: true,
|
autorestart: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue