initial
This commit is contained in:
commit
410a52780f
4 changed files with 48 additions and 0 deletions
10
README.md
Normal file
10
README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Hello Language Pack
|
||||
|
||||
The Hello Language Pack will look for a file named `hello.txt` in the app root and
|
||||
display its contents during push.
|
||||
|
||||
## Usage
|
||||
|
||||
Add this language pack to your `LANGUAGE_PACK_URL`.
|
||||
|
||||
heroku config:add LANGUAGE_PACK_URL="http://github.com/heroku/language-pack-hello.git"
|
18
bin/compile
Executable file
18
bin/compile
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
indent() {
|
||||
sed -u 's/^/ /'
|
||||
}
|
||||
|
||||
echo "-----> Found a hello.txt"
|
||||
|
||||
# if hello.txt has contents, display them (indented to align)
|
||||
# otherwise error
|
||||
|
||||
if [ ! -s $1/hello.txt ]; then
|
||||
echo "hello.txt was empty" | indent
|
||||
exit 1
|
||||
else
|
||||
echo "hello.txt is not empty, here are the contents" | indent
|
||||
cat $1/hello.txt | indent
|
||||
fi
|
9
bin/detect
Executable file
9
bin/detect
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# this pack is valid for apps with a hello.txt in the root
|
||||
if [ -f $1/hello.txt ]; then
|
||||
echo "HelloFramework"
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
11
bin/release
Executable file
11
bin/release
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat << EOF
|
||||
---
|
||||
addons:
|
||||
- shared-database:5mb
|
||||
config_vars:
|
||||
PATH: bin:/usr/bin:/bin
|
||||
default_process_types:
|
||||
hello: cat hello.txt
|
||||
EOF
|
Loading…
Reference in a new issue