try using pm2 again

pull/33/head
unknown 2019-04-23 16:42:07 -04:00
parent b6b6dc4228
commit 9f832a6b9b
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,7 @@ module.exports = {
apps: [{
name: 'roe-base',
script: 'app.js',
instances: 1,
instances: 2,
autorestart: true,
watch: false,
env: {
@ -10,7 +10,12 @@ module.exports = {
},
env_production: {
NODE_ENV: 'production',
SAILS_DATASTORE_URL: process.env.DATABASE_CONNECTION
SAILS_DATASTORE_URL: process.env.DATABASE_CONNECTION,
DATABASE_CONNECTION: process.env.DATABASE_CONNECTION,
PASSPORT_GITHUB_ID: process.env.PASSPORT_GITHUB_ID,
PASSPORT_GITHUB_SECRET: process.env.PASSPORT_GITHUB_SECRET,
PASSPORT_GOOGLE_ID: process.env.PASSPORT_GOOGLE_ID,
PASSPORT_GOOGLE_SECRET: process.env.PASSPORT_GOOGLE_SECRET
}
}]
}

View File

@ -10,7 +10,7 @@
"start:debug": "npm-run-all --parallel open:client debug",
"start:prod": "npm-run-all --parallel build:prod lift",
"start:client": "webpack-dev-server --mode development",
"start:eb": "npm run db:migrate && npm run build:prod && npm run lift",
"start:eb": "npm run db:migrate && npm run build:prod && npm run forever",
"lift": "sails lift",
"build": "npm run build:prod",
"build:dev": "webpack --mode development",