Skip to content
Browse files

Change scope for env properties

  • Loading branch information...
1 parent 12c20bb commit ea63dc502c0669e0811d72d186b205e4d0232afa @abtris abtris committed Feb 18, 2014
Showing with 8 additions and 10 deletions.
  1. +8 −10 bin/compile
View
18 bin/compile
@@ -79,17 +79,15 @@ elif test -d $cache_dir/node/node_modules; then
fi
-# Scope config var availability only to `npm install`
-(
- if [ -d "$env_dir" ]; then
- status "Exporting config vars to environment"
- export_env_dir $env_dir
- fi
+if [ -d "$env_dir" ]; then
+ status "Exporting config vars to environment"
+ export_env_dir $env_dir
+fi
+
+status "Installing dependencies"
+# Make npm output to STDOUT instead of its default STDERR
+npm install --userconfig $build_dir/.npmrc --production 2>&1 | indent
- status "Installing dependencies"
- # Make npm output to STDOUT instead of its default STDERR
- npm install --userconfig $build_dir/.npmrc --production 2>&1 | indent
-)
# Persist goodies like node-version in the slug
mkdir -p $build_dir/.heroku

0 comments on commit ea63dc5

Please sign in to comment.
Something went wrong with that request. Please try again.