[Solved] Missing config.ru when using rackup [closed]


You need to add a file called config.ru to your root/ directory.

config.ru is the configuration file for rackup, and controls what rackup will actually run.

Look at section 2.3 for an explanation: http://guides.rubyonrails.org/rails_on_rack.html

To use rackup instead of Rails’ rails server, you can put the following inside config.ru of your Rails application’s root directory:

# Rails.root/config.ru
require ::File.expand_path('../config/environment', __FILE__)

use Rails::Rack::Debugger
use Rack::ContentLength
run Rails.application

1

solved Missing config.ru when using rackup [closed]