Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate the heroku env slurping into a separate script and simplify …
…it considerably.
- Loading branch information
1 parent
a04ae2b
commit 04deccf
Showing
2 changed files
with
4 additions
and
12 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 |
---|---|---|
@@ -1,17 +1,6 @@ | ||
#!/bin/sh | ||
|
||
#/usr/bin/env npm install | ||
/usr/bin/env npm install | ||
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH" | ||
|
||
echo "#!/bin/sh" > bin/env.sh | ||
exec heroku config --app bashubot | | ||
while read line; do | ||
if [[ $line != PATH* && $line != REDISTOGO_URL* ]] | ||
then | ||
echo "export ${line/ *=> /=\"}\"" >> bin/env.sh; | ||
fi | ||
|
||
done | ||
chmod +x bin/env.sh | ||
source bin/env.sh | ||
exec node_modules/.bin/hubot -n bashobot "$@" |
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,3 @@ | ||
#!/bin/sh | ||
|
||
/usr/bin/env `heroku config --app bashubot | grep -v REDIS | awk '{print $1 "=" $3}'` bin/hubot "$@" -a shell |