dev 412 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 &> /dev/null
  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 "$@"