-
Notifications
You must be signed in to change notification settings - Fork 24
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
[tools][server] Environment variables for sc-server host and port #453
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #453 +/- ##
==========================================
- Coverage 95.70% 95.69% -0.02%
==========================================
Files 237 237
Lines 26965 26971 +6
Branches 1863 1865 +2
==========================================
+ Hits 25808 25809 +1
- Misses 1157 1162 +5 |
@ellipsis review this |
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.
❌ Changes requested. Reviewed everything up to 768edc8 in 2 minutes and 5 seconds
More details
- Looked at
115
lines of code in6
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. sc-tools/sc-server/src/sc_server_module.cpp:27
- Draft comment:
Usenullptr
instead ofnull_ptr
for checking null pointers.
if (port != nullptr)
- Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_aFcRgB3hjL7iyJRw
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
…nment variables for sc-server host and port );
This comment was marked as duplicate.
This comment was marked as duplicate.
…nment variables for sc-server host and port );
@NikitaZotov, I have addressed your comments in pull request #455 You can configure Ellipsis to address comments with a direct commit or a side PR, see docs. @NikitaZotov: @ellipsis fix this |
…nment variables for sc-server host and port );
…nment variables for sc-server host and port );
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.
@@ -21,7 +21,7 @@ ScServer::ScServer(std::string hostName, size_t port) | |||
|
|||
{ | |||
LogMessage(ScServerErrorLevel::info, "Socket data:"); | |||
LogMessage(ScServerErrorLevel::info, "\tHost name: " + m_hostName); | |||
LogMessage(ScServerErrorLevel::info, "\tHost: " + m_hostName); |
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.
if message is changed to "Host", shouldn't m_hostName be changed to m_host as well?
// removed. | ||
// TODO(NikitaZotov): Configure all platform-dependent components from kb. | ||
|
||
sc_char const * host = std::getenv("SC_SERVER_HOST"); |
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.
can this be tested in some way?
Now there is no problem to specify host and port for sc-server in docker-compose.yml in projects.
Important
Add environment variables
SC_SERVER_HOST
andSC_SERVER_PORT
for sc-server configuration, with updates to documentation and source code.SC_SERVER_HOST
andSC_SERVER_PORT
for sc-server configuration indocker-compose.yml
andsc_server_module.cpp
.changelog.md
andsc_machine.md
to include new environment variables.sc_server_module.cpp
to read host and port from environment variables.sc_server.cpp
to reflect "Host" instead of "Host name".This description was created by for 768edc8. It will automatically update as commits are pushed.