Skip to content

Commit

Permalink
Fix two issues i had when using the new buildpack code:
Browse files Browse the repository at this point in the history
mkdir: cannot create directory `/app//.profile.d': File exists
 !     Heroku push rejected, failed to compile Erlang app

cp: cannot stat `/tmp/buildpack_bmoaig71iviz/opt/otp.sh': No such file or directory
 !     Heroku push rejected, failed to compile Erlang app
  • Loading branch information
Gerrit Riessen committed Jan 17, 2013
1 parent 04fa33e commit cbd56f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/compile
Expand Up @@ -59,7 +59,9 @@ if [ ${PIPESTATUS[0]} -ne 0 ]; then
exit 1
fi

mkdir ${PROFILE}
cp ${bpdir}/opt/otp.sh ${PROFILE}
if [ -f ${bpdir}/opt/otp.sh ]; then
mkdir -p ${PROFILE}
cp ${bpdir}/opt/otp.sh ${PROFILE}
fi

echo "-----> Build succeeded"

0 comments on commit cbd56f8

Please sign in to comment.