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

Move socket path to env #2955

Merged
merged 6 commits into from
Jan 17, 2020
Merged

Move socket path to env #2955

merged 6 commits into from
Jan 17, 2020

Conversation

maxaleks
Copy link
Contributor

@maxaleks maxaleks commented Jan 16, 2020

Closes #2948

@coveralls
Copy link

coveralls commented Jan 16, 2020

Pull Request Test Coverage Report for Build 136621bd-d2ed-49b2-8f33-f334d65bc95d

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 75.248%

Files with Coverage Reduction New Missed Lines %
apps/block_scout_web/lib/block_scout_web/controllers/chain/market_history_chart_controller.ex 1 78.57%
Totals Coverage Status
Change from base Build 4eeb35fe-dba3-426d-a52e-8fa890531245: 0.01%
Covered Lines: 5378
Relevant Lines: 7147

💛 - Coveralls

Copy link
Member

@vbaranov vbaranov left a 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.

@maxaleks
Copy link
Contributor Author

@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 } })
Copy link
Member

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

@vbaranov vbaranov self-requested a review January 17, 2020 11:01
@vbaranov vbaranov merged commit 7b73535 into master Jan 17, 2020
@vbaranov vbaranov deleted the move-socket-path-to-env branch January 17, 2020 11:18
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.

Get rid of hardcode of web socket path
3 participants