Skip to content

Commit

Permalink
build: add new ecosystem env
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspang committed Oct 1, 2023
1 parent 3e31247 commit b6d1b52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ module.exports = {
HTTPS_PORT: 445,
NODE_ENV: 'production',
BASE_URL: ''
},
env_development: {
PORT: 4000,
HTTPS_PORT: undefined,
NODE_ENV: 'development',
BASE_URL: 'launch'
}
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prestart": "npm run build && pm2 stop ecosystem.config.js",
"start": "pm2-runtime start ecosystem.config.js --env production",
"start": "pm2 start ecosystem.config.js --env production",
"start:staging": "yarn prestart && pm2-runtime start ecosystem.config.js --env development",
"dev": "BASE_URL=launch NODE_ENV=development ts-node src/index.ts",
"build": "tsc",
"prepare": "husky install",
Expand Down

0 comments on commit b6d1b52

Please sign in to comment.