Skip to content

Commit

Permalink
updates pm2 startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
terakilobyte committed Jun 18, 2015
1 parent 0173804 commit b24699a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pm2Start.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
var pm2 = require('pm2');
pm2.connect(function() {
pm2.start({
name: 'server',
script: 'server/server.js',
exec_mode: 'fork',
exec_mode: 'cluster',
instances: '2',
max_memory_restart: '900M'
}, function(err, apps) {
pm2.disconnect();
Expand Down

0 comments on commit b24699a

Please sign in to comment.