Skip to content

Commit

Permalink
now running pm2 from ecosystem.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
johndatserakis committed Aug 16, 2017
1 parent 063938f commit 0ffa6bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions ecosystem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"apps" : [
{
"name": "koa-vue-notes-api",
"script": "app.js",
"instances": 2,
"exec_mode": "cluster",
}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koa-vue-notes-api",
"version": "1.0.0",
"version": "1.0.1",
"description": "A SPA using Koa as the backend and Vue as the frontend.",
"author": "John Datserakis",
"private": false,
Expand All @@ -10,7 +10,7 @@
"test": "npm run build; mocha --require 'babel-polyfill' --compilers js:babel-register",
"build": "babel src -d build && npm run pretty",
"pretty": "prettier --write --print-width 80 --single-quote --trailing-comma es5 --tab-width 4 'src/**/*.js' 'models/**/*.js' 'middleware/**/*.js' 'config/**/*.js'",
"start-production": "pm2 start app.js --name='koa-vue-notes-api' -f",
"start-production": "pm2 start ecosystem.json",
"clean": "npm run clean:dist && npm run clean:tmp"
},
"license": "MIT",
Expand Down

0 comments on commit 0ffa6bb

Please sign in to comment.