We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d654c94 + 8357742 commit 4f3b085Copy full SHA for 4f3b085
1 file changed
builder/image/templates/builder
@@ -138,7 +138,14 @@ echo
138
if [ -f Procfile ]; then
139
PROCFILE=$(cat Procfile | /app/bin/yaml2json-procfile)
140
elif [ -f $TMP_DIR/slug.tgz ]; then
141
- PROCFILE=$(tar --to-stdout -xf $TMP_DIR/slug.tgz ./.release | /app/bin/extract-types)
+ # Sometimes, the buildpack will generate a Procfile instead of populating /bin/release
142
+ # /bin/release was unofficially deprecated for declaring default process types
143
+ if tar -tf $TMP_DIR/slug.tgz ./Procfile &> /dev/null;
144
+ then
145
+ PROCFILE="$(tar --to-stdout -xf $TMP_DIR/slug.tgz ./Procfile | /app/bin/yaml2json-procfile)"
146
+ else
147
+ PROCFILE=$(tar --to-stdout -xf $TMP_DIR/slug.tgz ./.release | /app/bin/extract-types)
148
+ fi
149
else
150
PROCFILE="{}"
151
fi
0 commit comments