diff --git a/CHANGELOG.md b/CHANGELOG.md index ac3a6b9..631b0ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.4.8 +- add pm2 max memory limit + ## 0.4.7 - introduce separate babelJS configuration for server side code diff --git a/manifest.json b/manifest.json index 4e6d372..7642b1e 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,7 @@ "admin": "admin.html", "source": "clearbit", "readme": "readme.md", - "version": "0.4.7", + "version": "0.4.8", "private_settings": [ { "type": "string", diff --git a/package.json b/package.json index f29b44e..4955330 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" }, diff --git a/process.yml b/process.yml new file mode 100644 index 0000000..499ed5e --- /dev/null +++ b/process.yml @@ -0,0 +1,4 @@ +apps: + - script: 'lib/index.js' + name: 'hull-clearbit' + max_memory_restart: '750M'