Add README.md
This commit is contained in:
29
README.md
Normal file
29
README.md
Normal 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 -it -p 3000:3000 -v $PWD:/opt/app --entrypoint carton mojo_app install
|
||||||
|
|
||||||
|
### start the server
|
||||||
|
|
||||||
|
$ docker run --rm -it -p 3000:3000 -v $PWD:/opt/app mojo_app
|
||||||
|
|
||||||
|
Visit `localhost:3000` with web browser. Changes should load when you reload
|
||||||
|
the page, without having to restart the server.
|
||||||
|
|
||||||
Reference in New Issue
Block a user