-
Notifications
You must be signed in to change notification settings - Fork 5
/
rails.ru
40 lines (32 loc) · 1.18 KB
/
rails.ru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#require "rails"
#require "rails/all"
require "action_controller/railtie"
#require "action_mailer/railtie"
require "rails/test_unit/railtie"
#require "sprockets/railtie"
class HelloWorld < Rails::Application
routes.append do
root "hello#world"
end
config.cache_classes = true
config.eager_load = true
config.secret_key_base = "49837489qkuweoiuoqwehisuakshdjksadhaisdy78o34y138974xyqp9rmye8yrpiokeuioqwzyoiuxftoyqiuxrhm3iou1hrzmjk"
["Rack::Lock", "ActionDispatch::Flash", "ActionDispatch::BestStandardsSupport",
"Rack::Sendfile", "ActionDispatch::Static", "Rack::MethodOverride",
"ActionDispatch::RequestId", "Rails::Rack::Logger",
"ActionDispatch::ShowExceptions", "ActionDispatch::DebugExceptions",
"ActionDispatch::RemoteIp", "ActionDispatch::Callbacks",
"ActionDispatch::Cookies", "ActionDispatch::Session::CookieStore",
"ActionDispatch::ParamsParser", "Rack::Head", "Rack::ConditionalGet",
"Rack::ETag"].each do |middleware|
config.middleware.delete(middleware)
end
end
class HelloController < ActionController::Metal
include ActionController::Rendering
def world
render text: "hello world rails"
end
end
HelloWorld.initialize!
run HelloWorld