Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `servers` command will try to spin up local dev servers by looking for: * Procfile.local * Procfile If neither exist, it will call `bin/rails server`.
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 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,15 @@ | ||
# !/bin/sh | ||
# Usage: servers | ||
# Boot up local dev servers, looking for: | ||
# * Procfile.local | ||
# * Procfile | ||
# If those don't exist, then: | ||
# * bin/rails server | ||
|
||
if [ -f Procfile.local ]; then | ||
foreman start --procfile=Procfile.local | ||
elif [ -f Procfile ]; then | ||
foreman start | ||
else | ||
bin/rails server | ||
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