Skip to content

Commit e0dce8a

Browse files
committed
Only run npm install on first boot
It's probably not the worst developer experience to restart the server when adding new dependencies.
1 parent f1c9620 commit e0dce8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

boot.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#! /bin/sh
2+
## Install new dependencies
3+
npm install
4+
25
./node_modules/supervisor/lib/cli-wrapper.js \
36
-w /usr/src/app,/app \
47
-i /usr/src/app/node_modules,/usr/src/app/helpers,/app/node_modules \

start.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
## Kill lingering processes
44
ps aux | grep babel-node | awk '{print $1}' | xargs kill -9
55

6-
## Install new dependencies
7-
npm install
8-
96
## Run using babel
107
NODE_PATH=`pwd`/node_modules:`pwd`/helpers:$NODE_PATH ./node_modules/babel-cli/bin/babel-node.js app.js --presets es2015,es2016,es2017

0 commit comments

Comments
 (0)