dev 379 B

12345678910111213141516
  1. #!/usr/bin/env sh
  2. if ! gem list foreman -i --silent; then
  3. echo "Installing foreman..."
  4. gem install foreman
  5. fi
  6. # Default to port 3000 if not specified
  7. export PORT="${PORT:-3000}"
  8. # Let the debug gem allow remote connections,
  9. # but avoid loading until `debugger` is called
  10. export RUBY_DEBUG_OPEN="true"
  11. export RUBY_DEBUG_LAZY="true"
  12. exec foreman start -f Procfile.dev "$@"