chore(docker): simplify development rules
* when `mix.lock` is changed, rebuild the image * when any other file is changed, sync and restart the service * except for directories that are related to deps/build/test/lsp
This commit is contained in:
parent
9f51d95e0a
commit
10842836a2
@ -29,23 +29,17 @@ services:
|
||||
init: true
|
||||
develop:
|
||||
watch:
|
||||
- path: ./mix.lock
|
||||
action: rebuild
|
||||
- path: ./
|
||||
ignore:
|
||||
- ./build/
|
||||
- ./deps/
|
||||
target: /opt/app
|
||||
action: sync
|
||||
- path: ./config/
|
||||
- ./.elixir_ls/
|
||||
- ./cover/
|
||||
- ./report/
|
||||
target: /opt/app
|
||||
action: sync+restart
|
||||
- path: ./lib/wabanex/application.ex
|
||||
target: /opt/app
|
||||
action: sync+restart
|
||||
- path: ./mix.exs
|
||||
target: /opt/app
|
||||
action: sync+restart
|
||||
- path: ./mix.lock
|
||||
action: rebuild
|
||||
environment:
|
||||
DNS_CLUSTER_QUERY: *app_host
|
||||
POSTGRES_HOST: *db_host
|
||||
|
Loading…
x
Reference in New Issue
Block a user