puma / puma-dev

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

Support prefixing to puma command #335

Open rhys117 opened 1 year ago

rhys117 commented 1 year ago

Description

Sinatra recommends using the rerun gem for auto-reloading.

I couldn't find an existing way to prefix the command when using puma-dev so this would add the ability to configure one.

If there aren't concerns with this approach I'd be happy to draft a usage paragraph for the README as well.

Testing

Manually verified with the following .pumaenv file.

COMMAND_PREFIX="rerun --background --"