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

It would be nice if the mdl serve livereload port were specifiable or the same as the -port port #382

Open
douglaswth opened this issue Mar 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@douglaswth
Copy link
Member

I noticed while trying to run a second instance of mdl serve with a different port number, that it still failed due to trying to bind to port 35728:

listen tcp :35729: bind: address already in use

It seems like the code is currently always passing the default port from the github.com/jaschaephraim/lrserver package when starting it, so it is definitely possible to pass a different value as a parameter.

It would probably be a little more work to get a live reload handler into the main mdl serve server since the github.com/jaschaephraim/lrserver package doesn't currently provide an exported handler method that could be used, but that would mean that you only need to pass one parameter in order to use multiple instances of mdl serve concurrently.

@douglaswth douglaswth added the enhancement New feature or request label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant