You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
417 B
20 lines
417 B
#!/usr/bin/env sh |
|
|
|
# Default to port 3000 if not specified |
|
export PORT="${PORT:-3000}" |
|
|
|
# Get around our boot.rb ENV check |
|
export RAILS_ENV="${RAILS_ENV:-development}" |
|
|
|
if command -v overmind 1> /dev/null 2>&1 |
|
then |
|
overmind start -f Procfile.dev "$@" |
|
exit $? |
|
fi |
|
|
|
if gem list --no-installed --exact --silent foreman; then |
|
echo "Installing foreman..." |
|
gem install foreman |
|
fi |
|
|
|
foreman start -f Procfile.dev "$@"
|
|
|