-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Move socket path to env #2955
Move socket path to env #2955
Conversation
Pull Request Test Coverage Report for Build 136621bd-d2ed-49b2-8f33-f334d65bc95d
💛 - Coveralls |
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.
@maxaleks please create also a separate PR to extend the table with this new ENV var https://github.com/blockscout/docs/blob/master/for-developers/information-and-settings/env-variables.md. Fill version
column with master
. A new record should e at the bottom.
@vbaranov Done ✅ |
@@ -1,7 +1,7 @@ | |||
import { Socket } from 'phoenix' | |||
import { locale } from './locale' | |||
|
|||
const socket = new Socket('/socket', { params: { locale: locale } }) | |||
const socket = new Socket((process.env.SOCKET_ROOT || '') + '/socket', { params: { locale: locale } }) |
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.
@maxaleks websocket should work fine (the same way when there is no ENV var) if to set export SOCKET_ROOT=/
but it doesn't work
Closes #2948