Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Detect upcoming Gruntfiles, export required env vars

  • Loading branch information...
commit 1ef338229b5964e1acd257d7e57ec2bbd14c7fad 1 parent ae6d524
Almad Almad authored

Showing 1 changed file with 10 additions and 2 deletions. Show diff stats Hide diff stats

  1. +10 2 bin/compile
12 bin/compile
@@ -7,6 +7,10 @@ set -e
7 7 # debug
8 8 # set -x
9 9
  10 +# preserve git directory, which is in /app/repo.git
  11 +# GIT_DIR is '.', otherwise it would be good to join'em
  12 +export APPLICATION_GIT_DIR=`pwd`
  13 +
10 14 # clean up leaking environment
11 15 unset GIT_DIR
12 16
@@ -174,11 +178,15 @@ run_npm "rebuild"
174 178 echo "Dependencies installed" | indent
175 179
176 180 echo "-----> Building runtime environment"
  181 +if [ -f /app/tmp/push_metadata.yml ]; then
  182 + export APPLICATION_PUSH_METADATA_FILE="/app/tmp/push_metadata.yml"
  183 +fi;
  184 +export APPLICATION_TMP_REPODIR=$(mktmpdir actual_repository)
177 185 mkdir -p $BUILD_DIR/.profile.d
178 186 echo "export PATH=\"\$HOME/bin:\$HOME/node_modules/.bin:\$PATH\"" > $BUILD_DIR/.profile.d/nodejs.sh
179 187
180   -if [ -f $BUILD_DIR/grunt.js ]; then
181   - echo "-----> Found gruntfile (grunt.js), running grunt heroku task"
  188 +if [ -f $BUILD_DIR/grunt.js ] || [ -f $BUILD_DIR/Gruntfile.js ] || [ -f $BUILD_DIR/Gruntfile.coffee ]; then
  189 + echo "-----> Found gruntfile, running grunt heroku task"
182 190 $BUILD_DIR/node_modules/grunt/bin/grunt heroku
183 191 else
184 192 echo "-----> No gruntfile (grunt.js) found"

0 comments on commit 1ef3382

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