Skip to content

Commit

Permalink
fix: Merge pull request #63 from pelias/avoid-npm-start
Browse files Browse the repository at this point in the history
Add script to start service
  • Loading branch information
orangejulius authored Mar 14, 2018
2 parents 4fced6e + 1462f6e commit 95b080f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN npm install
RUN npm test

# start the pip service using the directory the data was downloaded to
CMD ["npm", "start"]
CMD ["./bin/start"]
2 changes: 2 additions & 0 deletions bin/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec node --max_old_space_size=4096 index.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0-development",
"main": "index.js",
"scripts": {
"start": "node --max_old_space_size=4096 index.js",
"start": "./bin/start",
"test": "node test/test | tap-dot",
"lint": "jshint .",
"travis": "npm run check-dependencies && npm test",
Expand Down

0 comments on commit 95b080f

Please sign in to comment.