From 25f28244cd81f9504c1d690f00a2eaaf58f8584e Mon Sep 17 00:00:00 2001 From: Andrew Wharton Date: Thu, 25 Aug 2016 16:53:34 +1000 Subject: [PATCH] added pre-build 'meteor npm install' step This is needed so that npm dependencies are available when building the application --- base/scripts/lib/build_app.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/scripts/lib/build_app.sh b/base/scripts/lib/build_app.sh index 5c43919b..abdfe497 100644 --- a/base/scripts/lib/build_app.sh +++ b/base/scripts/lib/build_app.sh @@ -8,6 +8,8 @@ BUNDLE_DIR=/tmp/bundle-dir cp -R /app $COPIED_APP_PATH cd $COPIED_APP_PATH +meteor npm install + meteor build --directory $BUNDLE_DIR --server=http://localhost:3000 cd $BUNDLE_DIR/bundle/programs/server/ @@ -19,4 +21,4 @@ mv $BUNDLE_DIR/bundle /built_app rm -rf $COPIED_APP_PATH rm -rf $BUNDLE_DIR rm -rf ~/.meteor -rm /usr/local/bin/meteor \ No newline at end of file +rm /usr/local/bin/meteor