Guest User

Untitled

a guest
Feb 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/ruby
  2. # this script executes gonzui as a cgi program.
  3.  
  4. ENV['HOME'] = '/path/to/home/of/gonzui/user'
  5. #ENV['GEM_HOME'] = '/tmp/GEM'
  6. require 'rubygems'
  7. require 'rack'
  8. require 'gonzui-rack'
  9.  
  10. gonzui_app = build_gonzui_app do |config|
  11. # config.base_mount_point = ENV['SCRIPT_NAME']
  12. end
  13. handler = if /\.fcgi/ =~ __FILE__
  14. Rack::Handler::FastCGI
  15. else
  16. Rack::Handler::CGI
  17. end
  18. handler.run gonzui_app
Add Comment
Please, Sign In to add comment