Skip to content
Snippets Groups Projects
Commit 431ecee5 authored by manojlds's avatar manojlds
Browse files

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.
parent 5b552617
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -f $BIN_DIR/post_compile ]; then if [ -f bin/post_compile ]; then
echo "-----> Running post-compile hook" echo "-----> Running post-compile hook"
chmod +x $BIN_DIR/post_compile chmod +x bin/post_compile
$BIN_DIR/post_compile bin/post_compile
fi fi
\ No newline at end of file
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -f $BIN_DIR/pre_compile ]; then if [ -f bin/pre_compile ]; then
echo "-----> Running pre-compile hook" echo "-----> Running pre-compile hook"
chmod +x $BIN_DIR/pre_compile chmod +x bin/pre_compile
$BIN_DIR/pre_compile bin/pre_compile
fi fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment