
Hi there,
I've changed my function via settings to point to the main-appwrite
branch of my repo. However no matter what I do, it only will deploy from the main
branch (which I originally set it to). Is this a bug?

how are the deployments triggered?

Manually

How exactly?

So when I created the function, it was pointing at the main
branch. Pushing a change to this branch caused it to deploy. The deploy failed due to an error. I then created a new branch, main-appwrite
and fixed the error. I changed the Github function settings to point to the new branch and clicked "update." Then when I clicked re-deploy, it redeployed from the main
branch as if the configs were not updated. I triple-checked and fiddled with the settings a bunch but nothing worked and I ran out of ideas

So that redeploys the last build...you can try pushing a commit to the main-appwrite branch to get appwrite to fetch the latest code

Okay, I just tried that. Appwrite detected the push to the main-appwrite
branch and this triggered a redeploy. However it again deployed the main
branch. The change to the target branch in the settings pane just isn't getting picked up

I was able to reproduce it:
- Create a new function from a Github repository
- Change the branch
- Push new code / redeploy
- The original branch gets deployed

hmm would you please create a github issue for this?

im pretty sure redeploying just creates a new build with the previous code. what's strange is that you said pushing to the new branch doesn't trigger a deployment for that branch...

it seems like it might not be consistent...but i was able to update the new branch and get a deployment triggered with the new brnach


I created another branch called test
and pushed a change and it actually deployed from the correct branch this time, but build time has gone through the roof 🤔 Unsure if that is a separate issue. The only difference between the branches is the addition of a test.txt file.
I'm wondering now if the name of the branch matters

ya i got that sometimes too...it's inconsistent =/ it'd be good to make 1 issue for these problems

Yikes this is still going and "redeploy" causes a weird API error

Ya I saw that too 😕

okay deleting and pushing new code worked
Recommended threads
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
