Ver código fonte

Add watch.sh

Andrea Fazzi 6 anos atrás
pai
commit
eaa1eeafd9
2 arquivos alterados com 5 adições e 1 exclusões
  1. 0 1
      .gitignore
  2. 5 0
      watch.sh

+ 0 - 1
.gitignore

@@ -1,3 +1,2 @@
 **/*~
 core
-watch.sh

+ 5 - 0
watch.sh

@@ -0,0 +1,5 @@
+#!/bin/sh
+while inotifywait -r -e modify ./; do
+  docker-compose -f compose/karmen/docker-compose.yml down -v
+  docker-compose -f compose/karmen/docker-compose.yml up --build -d
+done