Skip to content

Commit

Permalink
Add pm2 memory limit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaloo committed Feb 7, 2018
1 parent 6420c8c commit 53a3746
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.4.8
- add pm2 max memory limit

## 0.4.7
- introduce separate babelJS configuration for server side code

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"admin": "admin.html",
"source": "clearbit",
"readme": "readme.md",
"version": "0.4.7",
"version": "0.4.8",
"private_settings": [
{
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hull-clearbit",
"description": "Enrich Customer data with Clearbit",
"version": "0.4.7",
"version": "0.4.8",
"main": "index.js",
"license": "MIT",
"homepage": "https://github.com/hull-ships/hull-clearbit",
Expand Down Expand Up @@ -51,7 +51,7 @@
"test:modules": "builder run test:modules",
"test:specs": "builder run test:specs",
"test:units": "builder run test:units",
"start": "NODE_ENV=production node --optimize_for_size --max_old_space_size=$MEMORY_AVAILABLE -r newrelic ./node_modules/.bin/pm2-runtime --raw lib",
"start": "NODE_ENV=production node --optimize_for_size --max_old_space_size=$MEMORY_AVAILABLE -r newrelic ./node_modules/.bin/pm2-runtime --raw process.yml",
"dev": "builder run dev",
"test": "builder run npm:test"
},
Expand Down
4 changes: 4 additions & 0 deletions process.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apps:
- script: 'lib/index.js'
name: 'hull-clearbit'
max_memory_restart: '750M'

0 comments on commit 53a3746

Please sign in to comment.