question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run `remix run` on multiple apps at once

See original GitHub issue

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.

https://github.com/remix-run/remix/blob/c1821e4f2c7e844f3b7462bbd6ae7711479c1c7d/packages/remix-dev/cli/commands.ts#L52

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?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
mcanshcommented, Apr 6, 2022

Closing as #2456 is merged now

that didn’t fix it 😢

2reactions
sergiodxacommented, Nov 4, 2021

It’d also be nice if instead of just dropping the process, Remix could be smart and just look for another port if the default/configured port is in use

This would be really useful so you don’t need to care about that at all

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQs - Remix
Frequently Asked Questions · How can I have a parent route loader validate the user and protect all child routes? · How do...
Read more >
Remix Single: Concurrent Mutations w/ useFetcher
This allows apps to add pending and optimistic UI to multiple elements at the same time. Concurrent Mutations! Learn more at https://remix.run.
Read more >
Mixing It Up: Remix Joins Shopify to Push the Web Forward
One of the other seismic shifts we're seeing is edge runtimes. Remix is an edge-first framework, not just for node, that allows you...
Read more >
Remix.run's fullstack paradigm - K-Optional Software
But it doesn't feel like one because Remix does all the work. Cons of the Remix philosophy. Cloud coupling. We really appreciate that...
Read more >
Is Remix the Next-Gen React Framework You Should Use?
It is one of the newer web frameworks built on React. ... distributed web architecture means two things: it's fast, and it can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found