Ubic::Service::Hypnotoad - Ubic service module for Mojolicious Hypnotoad
version 0.3005
use Ubic::Service::Hypnotoad; return Ubic::Service::Hypnotoad->new({ bin => '/usr/bin/hypnotoad', # or 'carton exec hypnotoad', or ['carton', 'exec', 'hypnotoad'], optional, defaults to 'hypnotoad' app => '/home/www/mysite.app', pid_file => '/var/log/mysite.pid', # optional, defaults to a hypnotoad.pid file lying next to "app" cwd => '/path/to/app/', # optional, change working directory before starting a daemon env => { # optional environment variables MOJO_FLAG_A => 1, MOJO_CONFIG => '...', }, wait_status => { # optional wait until status will change state step => 2, # default 0.1 trials => 4, # default 10 } });
This service is a common ubic wrap for launching your applications with Hypnotoad.
Get status of service.
Start service.
Stop service
Send a USR2 signal to the process, to have it do an "automatic hot deployment".
If you have a Github account, report your issues at https://github.com/akarelas/ubic-service-hypnotoad/issues. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Alexander Karelas <karjala@karjala.org>
This software is copyright (c) 2014 by Alexander Karelas.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Ubic::Service::Hypnotoad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ubic::Service::Hypnotoad
CPAN shell
perl -MCPAN -e shell install Ubic::Service::Hypnotoad
For more information on module installation, please visit the detailed CPAN module installation guide.