Rename to buildpack
This commit is contained in:
parent
410a52780f
commit
0135768760
2 changed files with 18 additions and 18 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Hello Language Pack
|
# Hello Build Pack
|
||||||
|
|
||||||
The Hello Language Pack will look for a file named `hello.txt` in the app root and
|
The Hello Build Pack will look for a file named `hello.txt` in the app root and
|
||||||
display its contents during push.
|
display its contents during push.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Add this language pack to your `LANGUAGE_PACK_URL`.
|
Add this language pack to your `BUILDPACK_URL`.
|
||||||
|
|
||||||
heroku config:add LANGUAGE_PACK_URL="http://github.com/heroku/language-pack-hello.git"
|
heroku config:add BUILDPACK_URL="http://github.com/heroku/heroku-buildpack-hello.git"
|
||||||
|
|
28
bin/compile
28
bin/compile
|
@ -1,18 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
indent() {
|
indent() {
|
||||||
sed -u 's/^/ /'
|
sed -u 's/^/ /'
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "-----> Found a hello.txt"
|
echo "-----> Found a hello.txt"
|
||||||
|
|
||||||
# if hello.txt has contents, display them (indented to align)
|
# if hello.txt has contents, display them (indented to align)
|
||||||
# otherwise error
|
# otherwise error
|
||||||
|
|
||||||
if [ ! -s $1/hello.txt ]; then
|
if [ ! -s $1/hello.txt ]; then
|
||||||
echo "hello.txt was empty" | indent
|
echo "hello.txt was empty" | indent
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "hello.txt is not empty, here are the contents" | indent
|
echo "hello.txt is not empty, here are the contents" | indent
|
||||||
cat $1/hello.txt | indent
|
cat $1/hello.txt | indent
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue