1
0

dev 417 B

1234567891011121314151617181920
  1. #!/usr/bin/env sh
  2. # Default to port 3000 if not specified
  3. export PORT="${PORT:-3000}"
  4. # Get around our boot.rb ENV check
  5. export RAILS_ENV="${RAILS_ENV:-development}"
  6. if command -v overmind 1> /dev/null 2>&1
  7. then
  8. overmind start -f Procfile.dev "$@"
  9. exit $?
  10. fi
  11. if gem list --no-installed --exact --silent foreman; then
  12. echo "Installing foreman..."
  13. gem install foreman
  14. fi
  15. foreman start -f Procfile.dev "$@"