Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix two issues i had when using the new buildpack code:

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...
commit cbd56f8220b0eac4e836e50e7ee7e25e86a76816 1 parent 04fa33e
@gorenje gorenje authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/compile
View
6 bin/compile
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.