puma / puma-dev

A tool to manage rack apps in development with puma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to mix directories and dasherized app names in ~/.puma-dev/

gee-forr opened this issue · comments

Hi all,

I noticed an issue when attempting to set up an app organised inside a folder in ~/.puma-dev. Puma-dev is unable to detect a mix of folders and dasherized named. It's probably easier to illustrate with an example:

Given an app I want to reach at https://client1-super-app.test, I would like to have the following file structure:

  • ~/.puma-dev/client1/super-app

Unfortunately, what appears to be happening is puma-dev will only look for the following two cases:

  • ~/.puma-dev/client1-super-app
  • ~/.puma-dev/client1/super/app

It would be great if puma-dev was able to also find a mix and match of directories and dasherized names.

  • ~/.puma-dev/client1/super-app
  • or even ~/.puma-dev/client-01/super-app that has a directory with a hyphen in it too.

In the meantime, a workaround is just to use multiple nested dirs or everything dasherized, but this would be a nice quality of life change.

Thanks for puma-dev, it's an invaluable tool in our daily workflow. ❤️