puma / puma-dev

A tool to manage rack apps in development with puma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid running as a daemon and install with test

chrishough opened this issue · comments

I am trying to tinker with running puma-dev as follows...

brew install puma/puma/puma-dev
sudo puma-dev -setup -d test
puma-dev -install -d test

However, I need to avoid puma dev from both running as a deamon and taking control of the local port forwarding when it is not running. I literally have to uninstall it to avoid it from conflicting with my docker nginx proxy setup.

Thoughts?

I'm not sure what you're trying to accomplish. Can you provide more context?

The behavior you're describing is intended. puma-dev wants to own the default http/s ports. If you want to run docker+nginx on port 80, you can't run puma-dev on the same ports. You're welcome to set a non-default port via flags, (e.g. puma-dev -http-port 8080)

fPort = flag.Int("dns-port", 9253, "port to listen on dns for")
fHTTPPort = flag.Int("http-port", 9280, "port to listen on http for")
fTLSPort = flag.Int("https-port", 9283, "port to listen on https for")