puma / puma-dev

A tool to manage rack apps in development with puma
BSD 3-Clause "New" or "Revised" License
1.73k stars 106 forks source link

Support custom app directory location #333

Open farski opened 1 year ago

farski commented 1 year ago

There are several spots in the README that talk about the what the default puma-dev directory is (e.g., "~/.puma-dev by default", "Puma-dev will startup by default using the directory ~/.puma-dev"), but there wasn't any indication of how to change the directory to anything other than that default value.

I poked around the code a bit. I've never worked with Go, but as best I could tell that directory was hardcoded. I took a stab at adding the ability to set a custom directory with an environment variable.

I tried to lint and build the changes locally, but something is clearly banged up with my local Go setup. If what I came up with isn't correct, I doubt I would be able to fix it in the amount of time I have to spend on this, but it seemed like a simple change so hopefully it's close and maybe someone else can polish it up if necessary.