Skip to content
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

refactor: fix map provider params #566

Merged

Conversation

ayuki-joto
Copy link
Collaborator

🎩 What? Why?

提案で、住所の入力が表示されない問題の修正
static providerをglobalのproviderとして使わないようにしました。

📌 Related Issues

  • Related to #?
  • Fixes #?

📋 Subtasks

  • Add CHANGELOG upgrade notes, if required
  • If there's a new public field, add it to GraphQL API
  • Add documentation regarding the feature
  • Add/modify seeds
  • Add tests
  • Another subtask

📷 Screenshots (optional)

Description

config/puma.rb Outdated
@@ -43,7 +43,7 @@
# Workers do not work on JRuby or Windows (both of which do not support
# processes).
#
workers ENV.fetch("WEB_CONCURRENCY", 2)
workers ENV.fetch("WEB_CONCURRENCY") { 2 } unless Rails.env.development?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これですが、developmentじゃない時の値がわかりにくいので、workers ENV.fetch("WEB_CONCURRENCY", 1).to_iとかにしてしまって、productionでは環境変数WEB_CONCURRENCYを2とかに設定する、というのではどうでしょうか?(to_iはいらないんでしたっけ?)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubocopもここを修正すれば通るかと思います

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

どうやらpumaのclusterモードがあまり良くないらしく1台で起動しても同様の現象が起こってしまうようでした...

Copy link
Collaborator

@takahashim takahashim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あとは問題なさそうに見えました!

@ayuki-joto ayuki-joto merged commit ee27f06 into codeforjapan:develop Oct 10, 2023
2 checks passed
@takahashim takahashim deleted the refactor/fix-decidim-map-config branch November 8, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants