Boilerplate project for Mojolicious
carton exec morbo boiler_plate/script/boiler_plate -l "http://*:9000" -w boiler_plate/*
http://localhost:9000/
cpanm Carton
[Unit]
Description=BoilerPlate App
After=network.target
After=nginx.service
After=mysql.service
[Service]
Type=forking
PIDFile=/home/pavel/CRM/simple_crm/script/hypnotoad.pid
User=user
Group=user
ExecStart=carton exec /usr/local/bin/hypnotoad /home/user/boiler_plate/script/boiler_plate
ExecReload=carton exec /usr/local/bin/hypnotoad /home/user/boiler_plate/script/boiler_plate
KillMode=process
[Install]
WantedBy=multi-user.target
[Unit]
Description=MarketPlace application workers
After=mysql.service
[Service]
Type=simple
User=user
Group=user
ExecStart=carton exec /home/user/boiler_plate/script/boiler_plate minion worker -m production
KillMode=process
[Install]
WantedBy=multi-user.target