提交 5d77e3d2 编写于 作者: X Xavier Noria

use __dir__ to load the environment in config.ru

Stuff I see in passing while I am doing a walkthrough.

See rationale in 5b8738c2.
上级 598816f6
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
require ::File.expand_path('config/environment', __dir__)
run Rails.application
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册