Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created September 1, 2014 20:48
Show Gist options
  • Save alandipert/5cf38e94e5b061aaf791 to your computer and use it in GitHub Desktop.
Save alandipert/5cf38e94e5b061aaf791 to your computer and use it in GitHub Desktop.
Mount a rack app into a CGI script
#!/usr/bin/ruby
require 'rubygems'
Gem.use_paths(nil, Gem.path << "/home/alan/.gem/gems")
require 'bundler'
require 'rack'
require 'app'
Rack::Handler::CGI.run App.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment