coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
33.08k stars 1.77k forks source link

[Bug]: Editing the source Git branch and reloading compose without page refresh fails #3421

Open busybox11 opened 1 month ago

busybox11 commented 1 month ago

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 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)

N/A

Exception or Error

N/A

Version

v4.0.0-beta.335

Cloud?

gitekDev commented 1 month ago

+1 Same bug with Branch.