Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- # this script executes gonzui as a cgi program.
- ENV['HOME'] = '/path/to/home/of/gonzui/user'
- #ENV['GEM_HOME'] = '/tmp/GEM'
- require 'rubygems'
- require 'rack'
- require 'gonzui-rack'
- gonzui_app = build_gonzui_app do |config|
- # config.base_mount_point = ENV['SCRIPT_NAME']
- end
- handler = if /\.fcgi/ =~ __FILE__
- Rack::Handler::FastCGI
- else
- Rack::Handler::CGI
- end
- handler.run gonzui_app
Add Comment
Please, Sign In to add comment