Using the bin path at root of pwd

The compile script is run with the root of the git repo of the project
being pushed as the working directory.

$BIN_DIR is pointing to the bin directory of the buildpack which is not
where you would want to put the pre and post compile hooks.

Changing back to the old convention of looking for the hooks from the
bin directory at the root of the project.
This commit is contained in:
manojlds
2013-04-10 15:06:51 +05:30
parent 5b55261700
commit 431ecee509
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [ -f $BIN_DIR/post_compile ]; then
if [ -f bin/post_compile ]; then
echo "-----> Running post-compile hook"
chmod +x $BIN_DIR/post_compile
$BIN_DIR/post_compile
chmod +x bin/post_compile
bin/post_compile
fi
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [ -f $BIN_DIR/pre_compile ]; then
if [ -f bin/pre_compile ]; then
echo "-----> Running pre-compile hook"
chmod +x $BIN_DIR/pre_compile
$BIN_DIR/pre_compile
chmod +x bin/pre_compile
bin/pre_compile
fi