Run a command before live_update sync
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
Describe the Feature You Want
We want the ability to run a command before the live_update sync() calls in order to stop a wrapped child process before syncing files.
Current Behavior
According to the documentation run() must come after sync(). So syncing happens while the process is running.
Why Do You Want This?
Syncing in files while the process is running can cause instability and/or the application could hold file locks. We would like to cleanly stop the (wrapped/child) process -> then sync the files -> then launch the new process. This would be easily done if it were possible to place a run() command before sync() or if docker_build supported a pre_live_update option.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the live_update sync() calls and the docker_build handling described in the issue. Determine how a pre-sync command would fit, then verify that the wrapped child process stops before files sync and relaunches afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- build-system, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100