Created
November 2, 2016 20:35
-
-
Save kascote/47667b653da46d101dd525dce03e181b to your computer and use it in GitHub Desktop.
Rails 2.3.x. config.ru to use with passenger for example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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