4
有沒有人知道config.ru
的內容應該是Rails 2.3.18應用程序在生產中運行在Passenger/Unicorn/Puma上?config.ru文件for Rails 2.3.18 app
到目前爲止我有:
# Require your environment file to bootstrap Rails
require ::File.dirname(__FILE__) + '/config/environment'
# Dispatch the request
run ActionController::Dispatcher.new
但它加載development
而不是正確的生產環境。
稍微好一點的config.ru包含靜態資源:http://guides.rubyonrails.org/v2.3.11/rails_on_rack.html#rackup – nathany