try using pm2 again
parent
b6b6dc4228
commit
9f832a6b9b
|
@ -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
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue