forked from markpundsack/heroku-buildpack-jekyll
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 410a527
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |