Skip to content

Instantly share code, notes, and snippets.

@kascote
Created November 2, 2016 20:35
Show Gist options
  • Save kascote/47667b653da46d101dd525dce03e181b to your computer and use it in GitHub Desktop.
Save kascote/47667b653da46d101dd525dce03e181b to your computer and use it in GitHub Desktop.
Rails 2.3.x. config.ru to use with passenger for example
# Reference: http://guides.rubyonrails.org/v2.3.11/rails_on_rack.html#rackup
#
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"]
# Require your environment file to bootstrap Rails
require ::File.dirname(__FILE__) + '/config/environment'
# Serve static assets from RAILS_ROOT/public directory
# use Rails::Rack::Static
# Dispatch the request
run ActionController::Dispatcher.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment