Open hovancik opened 7 years ago
+1
@hovancik I refactor it to mina-ng-puma here:
https://github.com/windy/mina-ng-puma
phased_restart
and restart
need start puma correctly when puma is down.
Is this gem still under maintenance? I have invested many hours to make it run, and I find the README could be a bit more exhaustive (e.g. I did not find anything about puma_port
setting until I dug into the code itself).
If I add details to the README, would this PR possibly be merged? If not, what about https://github.com/windy/mina-ng-puma, is it still maintained and would embrace PRs?
rationale
When I deploy app with
mina-puma
, I want to be able to use one command to restart (or start app if needed). With tasks available right now, it's not possible, so to check whether app is running I would need to bring extra stuff, that is already inmina-puma
(eg.:pumactl_socket
), to mydeploy.rb
.changes done
pumactl_command
was extended to accept one more parameteror_start
, which defaults to false, so no changes needs to be done to current code. Whenor_start
is set totrue
, app will be started when not running.New tasks
restart:or_start
andphased_restart:or_start
were added utilising this functionality.Please let me know if that's fine, or you can see a better way to do it. Then I can update README and so on.