A tool to run morbo on Windows - winmorbo

We have released a tool winmorbo that makes the Mojolicious development server "morbo" work well on Windows.

winmorbo

On Windows, the Mojolicious development server morbo doesn't work. This is because the worker process does not receive the parent TERM signal well.

This makes web development very tedious on Windows.

I hacked Mojo::Server::Morbo in a simple way to get morbo working well on Windows.

How to install winmorbo

Download winmorbo.bat

First, download winmorb.bat to your Mojolicious project directory.

winmorbo - Github

Click winmorbo.bat on GitHub and click the Raw button to download winmorbo.bat.

Run winmorbo.bat

To run the Mojolicious application, run the following command.

Since it is a Windows batch file, you do not need to specify the .bat extension.

In this example, the Mojolicious application is app.pl.

    winmorbo app.pl

If the window opens and the next screen appears, it is successful.

    C:\Users\kimot\labo> cmd/C perl -x -S winmorbo app.pl
    Server available at http://127.0.0.1:3000

This will automatically restart the morbo server every time you change a file.

Frequently Asked Questions

I get a "Can't open dir (templates)" error

This is because there is a "Templates" directory in the Windows user directory.

Mojolicious also uses the "templates" directory.

To solve this problem, create one directory (eg labo).

    cd C:\Users\kimot
    mkdir labo
    cd labo

Then create app.pl in the labo directory.

Related Informatrion