Skip to content

Instantly share code, notes, and snippets.

@tylerpearson
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerpearson/d5d9a62a570e0d623da8 to your computer and use it in GitHub Desktop.
Save tylerpearson/d5d9a62a570e0d623da8 to your computer and use it in GitHub Desktop.
setting env vars with passenger and nginx
http {
    ...
    passenger_ruby /path/to/passenger_ruby

=============

chmod +x /path/to/passenger_ruby

==============

#!/bin/sh
export VARIABLE="value"
exec "/path/to/ruby" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment