Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ if [ "$requested_node_ver" == "" ]; then
echo
fi

NODE_VERSION=$(curl --silent --get --data-urlencode "range=${requested_node_ver}" https://semver.io/node/resolve)
# samver.io can't be trusted, see https://github.com/oortcloud/heroku-buildpack-meteorite/issues/43
# NODE_VERSION=$(curl --silent --get --data-urlencode "range=${requested_node_ver}" https://semver.io/node/resolve)
NODE_VERSION=${requested_node_ver}
echo "Using Node.js version: ${NODE_VERSION}" | indent

# vendor directories
Expand All @@ -100,15 +102,14 @@ export npm_config_prefix="$VENDORED_MODULES"
export CPATH="$INCLUDE_PATH"
export CPPPATH="$INCLUDE_PATH"

############################################
# install AWS SDK
############################################
npm install aws-sdk

############################################
# install meteorite
############################################
echo "-----> Installing meteorite with npm"

run_npm "install meteorite -g"
echo "Meteorite installed" | indent

METEOR_BUILD_DIR="$BUILD_DIR/.meteor/heroku_build"
mkdir -p "$HOME"
############################################
Expand All @@ -123,8 +124,6 @@ VENDORED_METEOR="$(mktmpdir meteor)"
curl https://install.meteor.com | HOME="$VENDORED_METEOR" /bin/sh | indent
echo "Meteor installed" | indent

echo "Installing packages" | indent
HOME="$BUILD_DIR" mrt install --force | indent
echo "Building meteor bundle" | indent
HOME="$VENDORED_METEOR" "$VENDORED_METEOR"/.meteor/meteor bundle "$CACHE_DIR"/bundle.tar.gz 2>&1 | indent

Expand Down