I’m curious: is dealing with local dev server ports so cumbersome that you’d give write permission on /etc/hosts to an npm package?
(context: https://port1355.dev/)
10 replies
Endless fumbling around with plugs and sockets is cumbersome, too. We just put the live wires right next to the sink.
@localnerve …oh no
@zachleat at work it is, ports regularly conflict across services and their respective dependencies. particularly if you want to develop two services at once and each of them should have a dedicated redis or postgres instance for the sake of isolation, you now have to run one of the redises on a non-standard port which adds more config boilerplate. having one host per service would solve this. not convinced this portless thing is a good solution. HTTPS out of the box is a good aspect of it though, and the permission stuff is a non-issue IMO (again, for work... if a third-party OSS project imposed this onto me I would lose it)
-
@janl 12 years ago!
@zachleat mac only, but I’d be surprised if there wasn’t some systemd/dbus magic one could pull on linux.
-
@slightlyoff @zachleat I said “possible”!
-
@zachleat I would say it depends. Ports are annoying when you need a series of apps (ex; API service A, etc) to run to do what you need and all apps want to start at the same port. Because; defaults.
Would love a local discovery thing which would give apps a random port and then apps find each other based on something else than the port locally.
@zachleat It's been weeks since a successful malware injection attack via NPM. I'm all in.