From 177cbb33ddf01e4cd966ca18499f45f12d871a7d Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Wed, 19 Oct 2016 21:11:02 +0300 Subject: [PATCH] Add METEOR_WAREHOUSE_URLBASE and --unsafe-perm In Meteor 1.4.2 `--unsafe-perm` will be required to be passed to `meteor` to run Meteor as root (as `docker` does). Additionally, the METEOR_WAREHOUSE_URLBASE variable is set here to force usage of the still decent CDN and avoid meteor/meteor#7806. I hope to remove this asap. --- base/scripts/lib/build_app.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/scripts/lib/build_app.sh b/base/scripts/lib/build_app.sh index bf75b102..b0d2f744 100644 --- a/base/scripts/lib/build_app.sh +++ b/base/scripts/lib/build_app.sh @@ -13,7 +13,13 @@ echo "=> Executing NPM install --production" meteor npm install --production echo "=> Executing Meteor Build..." -meteor build --directory $BUNDLE_DIR --server=http://localhost:3000 +export +METEOR_WAREHOUSE_URLBASE=https://d3fm2vapipm3k9.cloudfront.net \ + METEOR_LOG=debug \ + meteor build \ + --unsafe-perm \ + --directory $BUNDLE_DIR \ + --server=http://localhost:3000 echo "=> Printing Meteor Node information..." echo " => platform"