goadesign / goadesign/model

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

Open
#382 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
467
Forks
23
Avg merge
6m
Merged PRs (30d)
8

Description

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`:

```text
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.