-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to Rails 7.1.1 and Shakapacer 7.1.0 #1391
Conversation
config/application.rb
Outdated
# require "action_text/engine" | ||
require "action_view/railtie" | ||
require "action_cable/engine" | ||
require "rails/test_unit/railtie" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里别改,以后麻烦,我每次升级 Rails 都会做一次 rails app:update
对每个默认文件进行 Diff,多一个差异,以后多一个工作。我一般都尽量保持默认文件与默认的一致,除非是不得不改。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个主要是我不把action_text注释掉,会CI报错,除非按照 9e522f2 这样改。
config/environments/development.rb
Outdated
@@ -23,6 +23,7 @@ | |||
config.action_controller.perform_caching = true | |||
config.action_controller.enable_fragment_cache_logging = true | |||
|
|||
config.cache_store = :memory_store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里也是,不要改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除了。
config/environments/test.rb
Outdated
@@ -9,14 +9,13 @@ | |||
# Settings specified here will take precedence over those in config/application.rb. | |||
|
|||
# While tests run files are not watched, reloading is not necessary. | |||
config.enable_reloading = true | |||
config.enable_reloading = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你这个是来自于 Rails 默认的配置吗?之前 Rails 7.1.0 有 CI 的错误,我改过一次,忘了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你改的是这个:94e01e8#diff-77f322f5ab0c54b1f2793b339574333dc55889645d910a93ede0fd7aa13b217aL19 rails默认是false。
config/environments/development.rb
Outdated
@@ -73,5 +74,5 @@ | |||
config.active_job.queue_adapter = :inline | |||
|
|||
# Raise error when a before_action's only/except options reference missing actions | |||
config.action_controller.raise_on_missing_callback_actions = true | |||
config.action_controller.raise_on_missing_callback_actions = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不是默认的,默认是true(对于Rails 7.1),但是目前给true会导致CI报错,但是如果不加这行,默认是false
你看我前几个 commit,不会保错的,你没搞对
Eric Guo ***@***.***>于2023年10月16日 周一上午11:02写道:
… ***@***.**** commented on this pull request.
------------------------------
In config/application.rb
<#1391 (comment)>:
> @@ -1,6 +1,18 @@
require_relative "boot"
-require "rails/all"
+require "rails"
+# Pick the frameworks you want:
+require "active_model/railtie"
+require "active_job/railtie"
+require "active_record/railtie"
+require "active_storage/engine"
+require "action_controller/railtie"
+require "action_mailer/railtie"
+# require "action_mailbox/engine"
+# require "action_text/engine"
+require "action_view/railtie"
+require "action_cable/engine"
+require "rails/test_unit/railtie"
这个主要是我不把action_text注释掉,会CI报错,除非按照 9e522f2
<9e522f2>
这样改。
—
Reply to this email directly, view it on GitHub
<#1391 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABLDUQDTSRRSUOOW6T6B3X7SPUZANCNFSM6AAAAAA6AZFIKM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
你看我最新的提交,你不需要改 Rails 的部分,目前已经是 Rails 7.1.1 测试也是对的。你只需改 Shakapacer 部分即可。 |
f04ecc3
to
364a4f5
Compare
在天华的BBS上开始跑了,目测没啥Bug。