Hi!
On 05/26/2017 09:23 PM, Pavel Serikov wrote:
I have a similar issue, but with morbo: web server doesn't watch for
changes.
So I'd like to renew discussion about dockerizing mojolicious apps.
Below is my docker-compose.yml file
|
version:'2'
services:
web:
image:pavelsr/kayako-dashboard-dev
container_name:kayako-dashboard
volumes:
-${PWD}:/root/www/
working_dir:/root/www
command:["morbo","-v","-w","dashboard_server.conf","./script/dashboard_server"]
ports:
-"3000:3000"
links:
-db
db:
image:mongo
container_name:kayako-dashboard-mongodb
ports:
-"27017:27017"
|
If I want to check results after updating the source code I need to do
docker-compose down && docker-compose up each time. It's a little bit
annoying.
Is there any solution ?
For morbo, you can always pass additional `-w` options, e.g.
morbo -v -w myapp.conf -w lib -w templates -w public ./script/myapp
Also, on the docker-compose side, you can do e.g. `docker-compose
restart web` to restart only the web (mojo) service, instead of tearing
down the entire environment via docker-compose up/down.
Cheers,
Zak
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.