Cataly...Server(3pm)

πŸ“¦
version 5.90132 Β· 6 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Catalyst::Script::Server β€” it's the Catalyst test server bestie πŸ’– (that's the 3pm page from the User Contributed Perl Documentation, if you were wondering where we are).


🌸 SYNOPSIS 🌸

myapp_server.pl [options]

Options:
  -d     --debug          force debug mode
  -f     --fork           handle each request in a new process
                     (defaults to false)
         --help           display this help and exits
  -h     --host           host (defaults to all)
  -p     --port           port (defaults to 3000)
  -k     --keepalive      enable keep-alive connections
  -r     --restart        restart when files get modified
                      (defaults to false)
  --rd   --restart_delay  delay between file checks
                     (ignored if you have Linux::Inotify2 installed)
  --rr   --restart_regex  regex match files that trigger
                     a restart when modified
                     (defaults to '\.yml$|\.yaml$|\.conf|\.pm$')
  --rdir --restart_directory  the directory to search for
                     modified files, can be set multiple times
                     (defaults to '[SCRIPT_DIR]/..')
  --sym  --follow_symlinks   follow symlinks in search directories
                     (defaults to false. this is a no-op on Win32)
  --bg   --background        run the process in the background
  --pid  --pidfile           specify filename for pid file

See also:
  perldoc Catalyst::Manual
  perldoc Catalyst::Manual::Intro

πŸ‘‘ okay so let's decode all of that, one flag at a time πŸ‘‘

  • -d, --debug β€” force debug mode. no vibes-based guessing, you're turning it ON πŸ’…
  • -f, --fork β€” every single request gets handled in a new process. very "one task at a time, main character" energy. defaults to false.
  • --help β€” shows you this exact help text and then exits. it's giving "here's the menu, bye" πŸŽ€
  • -h, --host β€” the host. defaults to all, so it's not picky, it loves everyone 🫢
  • -p, --port β€” the port. defaults to 3000. iconic number fr fr.
  • -k, --keepalive β€” turns on keep-alive connections ✨
  • -r, --restart β€” restarts whenever files get modified. defaults to false. the self-care of dev servers, honestly πŸ’–
  • --rd, --restart_delay β€” the delay between file checks. > heads up: this one is ignored if you have Linux::Inotify2 installed β€” it just doesn't need it, no cap.
  • --rr, --restart_regex β€” a regex that matches the files which trigger a restart when they get modified. defaults to '\.yml$|\.yaml$|\.conf|\.pm$' 🌈
  • --rdir, --restart_directory β€” the directory it searches for modified files. you can set this multiple times, stack them like scrunchies. defaults to '[SCRIPT_DIR]/..' πŸ¦‹
  • --sym, --follow_symlinks β€” follow symlinks in the search directories. defaults to false. this is a no-op on Win32, so on Windows it literally does nothing, don't come for me πŸ’€
  • --bg, --background β€” runs the process in the background, sneaky little icon πŸ™ˆ
  • --pid, --pidfile β€” lets you specify the filename for the pid file πŸ“

and also, bestie, go look at:

  • perldoc Catalyst::Manual
  • perldoc Catalyst::Manual::Intro

πŸ¦‹ DESCRIPTION πŸ¦‹

It runs a Catalyst test server for this application. that's it, that's the whole description, and honestly? it ate. short, sweet, no filler ✨


πŸ’œ SEE ALSO πŸ’œ

  • Catalyst::ScriptRunner β€” go read that one too, iykyk 🌸

πŸŽ€ AUTHORS πŸŽ€

Catalyst Contributors, see Catalyst.pm πŸ’…


This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself</sames> β€” sorry, same terms as Perl itself 🌈


and that's the whole page, bestie, you understood it perfectly, so proud of you πŸ«ΆπŸ’–

this was perl v5.40.0, dated 2024-11-15, from the Cataly...Server(3pm) page β€” mwah, slay, bye βœ¨πŸ‘‘

πŸ“¦ where this page comes from