提交 57e258eb 编写于 作者: G Garrett Bjerkhoel

Don't upgrade config.file_watcher during upgrade path

上级 a4ef6227
......@@ -95,9 +95,14 @@ def config_when_updating
action_cable_config_exist = File.exist?('config/cable.yml')
ssl_options_exist = File.exist?('config/initializers/ssl_options.rb')
rack_cors_config_exist = File.exist?('config/initializers/cors.rb')
development_config_exist = File.exist?('config/environments/development.rb')
config
if development_config_exist
gsub_file 'config/environments/development.rb', /^(\s+)config\.file_watcher/, '\1# config.file_watcher'
end
unless callback_terminator_config_exist
remove_file 'config/initializers/callback_terminator.rb'
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册