Skip to content

Instantly share code, notes, and snippets.

@ptzn
Created March 3, 2010 10:26
Show Gist options
  • Save ptzn/320505 to your computer and use it in GitHub Desktop.
Save ptzn/320505 to your computer and use it in GitHub Desktop.
passenger detection
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
if forked
# We're in smart spawning mode.
else
# We're in conservative spawning mode. We don't need to do anything.
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment