Skip to content

feat: better stop on start#1229

Merged
regisb merged 1 commit intoreleasefrom
regisb/stop-on-start
May 20, 2025
Merged

feat: better stop on start#1229
regisb merged 1 commit intoreleasefrom
regisb/stop-on-start

Conversation

@regisb
Copy link
Copy Markdown
Contributor

@regisb regisb commented May 13, 2025

When we run local/dev start we expect that any running dev/local project will be stopped. Previously, we were running docker compose ls twice, and for all running Compose projects on the server. We changed this behaviour:

  1. By swapping the project name check and the check for running compose projects, we run docker compose ls just once: for dev in local mode, and vice versa.
  2. By checking only Compose projects in the context of local/dev. That way we ignore any other non-tutor project.

When we run `local/dev start` we expect that any running `dev/local`
project will be stopped. Previously, we were running `docker compose ls`
twice, and for all running Compose projects on the server. We changed
this behaviour:

1. By swapping the project name check and the check for running compose
   projects, we run `docker compose ls` just once: for dev in local
   mode, and vice versa.
2. By checking only Compose projects in the context of local/dev. That
   way we ignore any other non-tutor project.
Copy link
Copy Markdown
Contributor

@mlabeeb03 mlabeeb03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DawoudSheraz DawoudSheraz moved this from Pending Triage to In review in Tutor project management May 19, 2025
@regisb regisb merged commit 3b6acae into release May 20, 2025
3 checks passed
@regisb regisb deleted the regisb/stop-on-start branch May 20, 2025 06:31
@github-project-automation github-project-automation bot moved this from In review to Done in Tutor project management May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants