-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't install foreman using bin/dev, as overmind is now available as …
…gem too
- Loading branch information
Showing
3 changed files
with
8 additions
and
17 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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
function fallback_to_foreman() { | ||
echo 'Overmind not installed. Falling back to foreman...' | ||
if ! command -v foreman &> /dev/null; then | ||
echo 'Installing foreman...' | ||
gem install foreman | ||
fi | ||
|
||
foreman start -f Procfile.dev | ||
} | ||
|
||
if command -v overmind &> /dev/null; then | ||
overmind start -f Procfile.dev | ||
elif command -v foreman &> /dev/null; then | ||
foreman start -f Procfile.dev | ||
else | ||
fallback_to_foreman | ||
echo 'Neither overmind, nor foreman is installed, either `gem install overmind` or `gem install foreman`.' | ||
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
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