vendredi 22 juillet 2016, 03:44:57 CEST Gabor Szabo wrote:
> Hi,
> 
> I am trying to deploy a Mojolicious-based application on an Ubuntu server.
> When I launch the application with hypnotoad everything is fine, but I 
> wonder what is the recommended way to make the Hypnotoad server launch when 
> I reboot the Linux box?
> 
> I looked at 
> http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT but 
> could not find this information.
> 
> regards
>    Gabor
> 
> 

You can find an upstart file for hypnotoad on
https://framagit.org/luc/lufi/blob/master/utilities/lufi_upstart.conf

I use Carton to manage the dependencies, just remove `carton exec` from
the command.

I put some environment variables in /etc/default/lufi 
(https://framagit.org/luc/lufi/blob/master/utilities/lufi.default), but you can 
hardcode them.

I provide initV and systemd files too: 
https://framagit.org/luc/lufi/tree/master/utilities
-- 
Luc
http://www.fiat-tux.fr/
Internet n'est pas compliqué, Internet est ce que vous en faites.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to