Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
⚡ start: check for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieconnolly committed Jan 1, 2017
1 parent 02062c1 commit 20e6ea9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libexec/handles-start
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ cd "$(git rev-parse --show-toplevel)"

handles-update

test -f "Procfile.local" &&
PROCFILE="Procfile.local"
test -f "Procfile.local" && PROCFILE="Procfile.local"

exec forego start -f "${PROCFILE:="Procfile"}"
if [ "$(uname -s)" = "Darwin" ]; then
if ! command -v forego &>/dev/null; then
echo "!!! Error: forego is not installed" >&2
exit 1
fi

exec forego start -f "${PROCFILE:="Procfile"}"
fi

0 comments on commit 20e6ea9

Please sign in to comment.