You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/03/18 20:03:47 UTC
[whimsy.git] [1/1] Commit 8370cf0: Fix broken passenger Ruby version
Commit 8370cf03067a6b04a6520ab2acfa98c993d3d358:
Fix broken passenger Ruby version
Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@apache.org>
------------------------------------------------------------
www/status/passenger.cgi | +++++ --
------------------------------------------------------------
7 changes: 5 additions, 2 deletions.
------------------------------------------------------------
diff --git a/www/status/passenger.cgi b/www/status/passenger.cgi
index ecca2b7..9edcbf6 100755
--- a/www/status/passenger.cgi
+++ b/www/status/passenger.cgi
@@ -1,4 +1,5 @@
-#!/usr/bin/env ruby
+#!/usr/local/bin/ruby2.3.0
+# must agree with the Ruby version in PassengerDefaultRuby in passenger.conf
require 'bundler/setup'
@@ -15,7 +16,9 @@ unless user
print "WWW-Authenticate: Basic realm=\"ASF Members and Officers\"\r\n\r\n"
exit
end
-output, error, status = Open3.capture3 'ruby',
+
+# Must agree with the passenger Ruby version as above
+output, error, status = Open3.capture3 '/usr/local/bin/ruby2.3.0',
Gem.bin_path('passenger', 'passenger-status')
_html do