Skip to content

Commit

Permalink
fix : pipeline with dotenv variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Atuldubey98 committed Mar 30, 2024
1 parent 80ad979 commit 4623dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ module.exports = {
{
name: "backend",
script: "./backend/src/server.js",
env: {
NODE_ENV: "development",
},
env_production: {
NODE_ENV: "production",
},
node_args : '-r ./backend/node_modules/dotenv/config'
},
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build:frontend": "cd frontend && npm i && npm run build",
"build:backend": "cd backend && npm i",
"build": "npm run build:frontend && npm run build:backend",
"start": "cd backend && npm start"
"start": "pm2 start ecosystem.config.js --env production"
},
"author": "Atul Dubey",
"license": "ISC"
Expand Down

0 comments on commit 4623dcc

Please sign in to comment.