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

Add ROC_BASIC_WEBSERVER_HOST and ROC_BASIC_WEBSERVER_PORT variables #15

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

Gauteab
Copy link
Contributor

@Gauteab Gauteab commented Dec 13, 2023

Makes it possible to set the host name and port of the server via environment variables.

Solves #14

@Gauteab Gauteab changed the title Added ROC_BASIC_WEBSERVER_HOST and ROC_BASIC_WEBSERVER_PORT variables Add ROC_BASIC_WEBSERVER_HOST and ROC_BASIC_WEBSERVER_PORT variables Dec 13, 2023
Copy link
Collaborator

@Anton-4 Anton-4 left a comment

Choose a reason for hiding this comment

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

Thanks @Gauteab!

@Anton-4 Anton-4 merged commit 39853f5 into roc-lang:main Dec 13, 2023
1 check passed
joprice added a commit to joprice/basic-webserver that referenced this pull request May 16, 2024
The pr roc-lang#15 exposed host
and port as env vars, but left the println hardcoded to 'localhost'.
This can be misleading since it makes it seem that the host env var is
not taking effect.
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