Search code examples
perlcommand-linemojolicious

call application command from specific mojolicious installation


I need to call my own mojolicious command from command line, using specific mojolicius intallation (System version of mojolicius is too old, and I can't update it). How can I do this?

something like:

$ ./kraih-mojo-97e88d1/script/mojo my_app/script/my_app my_command

will be great!


Solution

  • For quick-and-dirty solution try adding use lib '/path/to/kraih-mojo-97e88d1/lib'; statement to your my_app script and run command as

    perl my_app/script/my_app my_command