remix: Cannot run `remix run` on multiple apps at once
Because the port used by the WebSocket server is hard-coded, there’s currently no way to concurrently run dev for two Remix apps at once.
The run and watch commands would need to be updated to accept an alternative argument to set the WebSocket’s server port. It would be nice if we could also pass these as command line arguments as needed.
# easily override either the port passed to @remix-run/serve or the watch command
# bikeshed the APIs, obviously!
$ remix run --port 3030 --socket-port 3002
Thoughts?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 15 (5 by maintainers)
that didn’t fix it 😢
This would be really useful so you don’t need to care about that at all
Another problem arises if you are working under
https. ~Cannot open non-secure sockets (ws)~ EDIT: I was wrong, opening the port it does create aws.I was trying to monkey-patch the
LiveReloadcomponent, but currently struggling with a solution that works both server and client side.A possible solution could be:
But don’t know/understand internals very well, so I don’t get the reason because
LiveReloadis loaded even server side.