Skip to content

Commit

Permalink
remove pm2 memory fanciness
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkeley Martinez authored and Berkeley Martinez committed Aug 15, 2015
1 parent bcdda9c commit f710fa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pm2Start.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ pm2.connect(function() {
script: 'server/production-start.js',
'exec_mode': 'cluster',
instances: process.env.INSTANCES || 1,
'max_memory_restart':
(process.env.MAX_MEMORY / process.env.INSTANCES || 1) || '300M',
'max_memory_restart': process.env.MAX_MEMORY || '300M',
'NODE_ENV': 'production'
}, function() {
pm2.disconnect();
Expand Down

0 comments on commit f710fa1

Please sign in to comment.