-
Notifications
You must be signed in to change notification settings - Fork 1
Bump up to Rails 7.2 #604
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
base: for-taruntarun
Are you sure you want to change the base?
Bump up to Rails 7.2 #604
Conversation
|
|
||
| def inbox_url | ||
| "https://#{ENV['DOMAIN']}/inbox" | ||
| end |
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.
default_url_optionsの挙動が変更されており、そのまま扱うのは難しいと判断して環境変数を使うように変更しています。
|
|
||
| def acct | ||
| 'acct:relay@' + Rails.application.default_url_options[:host] | ||
| "acct:relay@#{ENV["DOMAIN"]}" |
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.
同じく環境変数を使うように変更しています
|
|
||
| def actor_url | ||
| PubRelay::Application.routes.url_helpers.actor_url | ||
| "https://#{ENV['DOMAIN']}/actor" |
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.
こちらも同じく
| type: "Follow", | ||
| actor: @actor['id'], | ||
| object: URI.join(Rails.application.routes.url_helpers.root_url, "/actor") | ||
| object: "https://#{ENV["DOMAIN"]}/actor" |
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.
こちらも同じく環境変数を使うように変更しています
|
|
||
| module PubRelay | ||
| class CLI < Thor | ||
| class Cli < Thor |
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.
定数読み込み周りの対応で定数名などを変更しています
|
|
||
| # Use a different cache store in production. | ||
| # config.cache_store = :mem_cache_store | ||
| config.cache_store = :redis_store, { url: ENV['REDIS_URL'] } |
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.
pub-relay-prototype全体で有効にしていたRedisでのキャッシュを本番環境のみで有効にするように変更しています。
そのため #601 でREDIS_URLが不要とコメントしていましたが一旦残す方向で対応できればと思います。
REDIS_URLとは別にREDIS_HOSTなどを設定すればOKですね
概要
pub-relayprototypeで利用するRailsのバージョンを7.2系列にあげています。
内容
備考
またfedifyを利用してローカル環境で建てたリレーサーバからリレーに参加し、投稿が配送されているログまでは確認が取れています。