Mojolicious

by Scott, Revised on February 14, 2018 (Open SourcePerlWeb Development)

Tips

Getting started

mojo generate app MyApp

Running the development server (default to port 3000)

morbo script/myapp

Same as above but on port 3001

morbo script/myapp --listen http://*:3001

Hypnotoad production server (start and hot deployment)

hypnotoad script/myapp

Stop the hypnotoad server

hypnotoad script/myapp -s

Start app on server boot by placing command in /etc/rc.local (note for perlbrew install, place source command in .bash_profile as well as .bashrc so root can access perlbrew install)

su -l user -c 'hypnotoad /home/user/webapp/script/web_app'

Tags: Open SourcePerlWeb Development