0

I know i can specify the ruby executable to use with passenger_ruby for a particular virtual server, but is there an easy way to specify the JRUBY_OPTS env variable I want to set for that particular executable?

Mohamed Hafez
  • 8,621
  • 7
  • 41
  • 49

1 Answers1

2

Yes, you can set any arbitrary environment variables you want. See section "About environment variables" from the Phusion Passenger manual.

Hongli
  • 18,682
  • 15
  • 79
  • 107
  • Awesome, the Nginx env directive was just what I was looking for, though it would be really helpful if I could define it on a per virtual host basis so I could tailor the JRUBY_OPTS to each app. – Mohamed Hafez Sep 16 '13 at 18:30