Add README.md

This commit is contained in:
2026-07-30 17:39:28 -07:00
parent 0a96071ffe
commit d2cecc1523

29
README.md Normal file
View File

@@ -0,0 +1,29 @@
## mojo-app
An example Mojolicious application.
---
## build docker image
$ docker build -t mojo_app .
## serve app
$ docker run --rm -it -p 3000:3000 mojo_app
Visit `localhost:3000` with web browser.
## serve app with local changes
### install dependencies
$ docker run --rm -v $PWD:/opt/app --entrypoint carton mojo_app install
### start the server
$ docker run --rm -v $PWD:/opt/app -p 3000:3000 mojo_app
Visit `localhost:3000` with web browser. Changes should load when you reload
the page, without having to restart the server.