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

fix #30 wsへ毎回アクセスしてしまうバグの修正 #52

Merged
merged 4 commits into from
Jun 17, 2023

Conversation

yuki-snow1823
Copy link
Owner

Fix: #30

railsでなぜか下記のエラーが出る

api_1    | Started GET "/ws" for 172.19.0.1 at 2023-06-17 09:49:24 +0900
api_1    |   
api_1    | ActionController::RoutingError (No route matches [GET] "/ws"):

シンオクさんのコメントを見ると、frontendのディレクトリに.envを作成しWDS_SOCKET_PORT=0を書くと直るとのこと。
実際に試したら直った。

このPRでは、.envを追加するわけにもいかないのでignoreの追加とREADMEの追加だけをします。

#30 (comment)

@netlify
Copy link

netlify bot commented Jun 17, 2023

Deploy Preview for lovely-buttercream-3a7f81 canceled.

Name Link
🔨 Latest commit 7a5a3db
🔍 Latest deploy log https://app.netlify.com/sites/lovely-buttercream-3a7f81/deploys/648d5052c90c8b0007d53903

@yuki-snow1823 yuki-snow1823 self-assigned this Jun 17, 2023
原因はまだわかっていないようです。以下のコマンドを実行してください。

`echo "WDS_SOCKET_PORT=0" >> diary/frontend/.env`

Copy link
Collaborator

Choose a reason for hiding this comment

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

原因はまだわかっていないようです。プロジェクトのルートディレクトリで以下のコマンドを実行してください。

echo "WDS_SOCKET_PORT=0" >> frontend/.env

ーーーーーーーーーーーーーーーーーーーー

とかの方がわかりやすかったりするかも?
と思ったりもしたのですが、いかがでしょうか?

Copy link
Owner Author

Choose a reason for hiding this comment

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

@DaisukeShinoku
良いと思います!
直しました〜

これで本当に直ったら環境構築の際に組み込みたいですね

Copy link
Collaborator

@DaisukeShinoku DaisukeShinoku left a comment

Choose a reason for hiding this comment

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

GoGo

@yuki-snow1823 yuki-snow1823 merged commit ad58d03 into main Jun 17, 2023
@yuki-snow1823 yuki-snow1823 deleted the fix-ws-access branch June 17, 2023 06:19
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.

開発環境で謎のエラー ActionController::RoutingError (No route matches [GET] "/ws"): が出る
2 participants