I tried to deploy a GitHub repo from its develop branch.
When I tried editing and saving the new branch in the Source tab, then went back to General and tried reloading Compose, it still showed an error telling me the main branch didn't exist from my source repo.
Reloading the page and going straight into the Source tab showed it still used main.
What worked was to edit the branch and save, THEN reload Coolify's page and THEN reload Compose.
My guess is that the main branch config is stored somewhere in the page's state, and pushed again to the config when you click on Reload Compose file, thus requiring a full page reload for it to work.
I haven't looked at Coolify's source yet and cannot verify this. Will try to if I have some time soon.
Minimal Reproduction (if possible, example repository)
Description
I tried to deploy a GitHub repo from its
develop
branch.When I tried editing and saving the new branch in the
Source
tab, then went back toGeneral
and tried reloading Compose, it still showed an error telling me the main branch didn't exist from my source repo.Reloading the page and going straight into the
Source
tab showed it still usedmain
.What worked was to edit the branch and save, THEN reload Coolify's page and THEN reload Compose.
My guess is that the
main
branch config is stored somewhere in the page's state, and pushed again to the config when you click onReload Compose file
, thus requiring a full page reload for it to work.I haven't looked at Coolify's source yet and cannot verify this. Will try to if I have some time soon.
Minimal Reproduction (if possible, example repository)
N/A
Exception or Error
N/A
Version
v4.0.0-beta.335
Cloud?