simple task to launch guard with puma and postgres
Usage:
guard tasks:
rake guard:start
launches Postgres Service if it wasn't active
connects Active Support if connection was dead
invokes Guard
if exited by Ctrl+C doesn't show all stack trace because of trap on INT signal
can be launched with options like so:
rake guard:start -- -h will show all available options and exit task
rake --trace guard -- -h to run the above but with trace
rake guard:restart restarts guard, puma and postgres (don't see any actual usage for this)
rake guard is shortcut for rake guard:start. can also be called with options in the same way.
puma tasks
rake puma:start
launches Postgres Service if it wasn't active
connects Active Support if connection was dead
launches Puma Server
if exited by Ctrl+C doesn't show all stack trace because of trap on INT signal
rake puma:kill terminates any puma instances on tcp:8080 (port should be changed corresponding to config)
rake puma:overkill kills anything on tcp:8080 (port should be changed corresponding to config)
rake puma corresponding to input will execute rake guard:start or rake puma:start. can pass options to guard.
postgres tasks
rake psql:start
launches Postgres Service if it wasn't active
connects Active Support if connection was dead
rake psql:connect connects Active Support if connection was dead
rake psql:restart restarts Postgres Service
rake psql:stop stops Postgres Service
About
simple rake task to launch guard with puma and postgres