vans163 / rebar3_auto

Rebar3 plugin to auto compile and reload on file change.
Other
55 stars 14 forks source link

Support rebar3 auto in relx's dev_mode release #6

Open gleber opened 8 years ago

gleber commented 8 years ago

It would be nice to be able to add rebar3_auto to a relx release which has dev_mode enabled and let it rebuild files in the running release.

vans163 commented 8 years ago

What is the difference between working in a relx release in dev_mode vs working in development mode with rebar3_auto outside a release?

If the reason is convincing enough it could be looked into.

lucafavatella commented 7 years ago

What is the difference between working in a relx release in dev_mode vs working in development mode with rebar3_auto outside a release?

Templating of sys.config and/or vm.args.

vans163 commented 7 years ago

@lucafavatella Is it possible to get some more details of what is happening now, and what should be the expected behavior?

lucafavatella commented 7 years ago

@vans163 An OTP release built with rebar3 can benefit from "overlays" for creating directories, copying files and instantiating file templates in the release. The most typical use is templating of sys.config and vm.args.

Off the top of my head (I moved away from my attempt yesterday):

vans163 commented 7 years ago

@lucafavatella Il look into this, but from the top of my head recompilation leverages rebar_agent:do(compile).

If rebar_agent is not picking up changes when the sources change, then it needs to be made to play better with dev_mode relx releases.

Otherwise rebar3_auto is not picking up the changed files.

vans163 commented 10 months ago

Give this a new try please, v0.5.1 uses r3:do(compile) now