openproject icon indicating copy to clipboard operation
openproject copied to clipboard

Start Guard instead of sleeping in dev environment

Open top4ek opened this issue 1 year ago • 0 comments

Ticket

https://community.openproject.org/projects/openproject/work_packages/68729/activity

What's going on

Allow developers to start Guard inside backend-test container instead of sleeping. This allows to run tests automatically on source files change while existing testing method via docker exec still can be used.

Guard can be started by setting START_GUARD environment variable to "1". Otherwise it's behavior stayed the same. (Do we need that?)

Also, we can use docker attach and stop code with binding.break(byebug as temporary we using it) because of tty and stdin options enabled in compose files.

top4ek avatar Feb 29 '24 10:02 top4ek