diff --git a/ecosystem.config.js b/ecosystem.config.js index e901176..c1c8ece 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -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' } }; diff --git a/package.json b/package.json index a2362ea..538e2bc 100644 --- a/package.json +++ b/package.json @@ -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",