Back

Self hosted appwrite functions deployment is not as my git repo

  • 1
  • Functions
armanhadi
13 Nov, 2023, 07:20

I deployed appwrite function with integration with github actions all works but after i update my function locally and push it to my repo even i redeploy on appwrite dashboard the function execution is just the old function its like appwrite is not getting the new deployment .

Note : I created my function from appwrite cli on my computer which created a folder called functions and a file appwrite.json , then i pushed that to my repo which i created inside functions forlder i have two appwrite function then inside appwrite when i created my function I set entrypoint to src/main.js and root directory to functions/user_fun

user_fun is just my function which is inside functions folder on my repo

So now when i execute the user_fun function i just get hello world even I completely changed the function

TL;DR
The user is experiencing an issue with deploying their self-hosted Appwrite functions from their GitHub repo. They have tried redeploying and connecting their GitHub repo, but the function still runs the old code. They are considering deleting the function and creating it again. Possible solution: Delete the function from Appwrite and create it again to ensure that the new code is deployed.
Drake
13 Nov, 2023, 21:24

What do you mean with "github actions"?

Drake
13 Nov, 2023, 21:25

Are you on Cloud? Does the function settings show the function is connected to the github repo?

armanhadi
15 Nov, 2023, 20:58

I'm self hosting appwrite , I created function with cli then pushed on to github I connected my github to appwrite everything works even deploy works , but later on when I do change my function and push it to github even I redeploy the function it is still the old code not the new one , so what should I do , I will delete the function from appwrite then again creating it to get the new code

armanhadi
15 Nov, 2023, 20:59
Drake
15 Nov, 2023, 21:42

If you're redeploying in Appwrite, that redeploys the previous code. It doesn't deploy the new code.

If everything was set up correctly, when your code in GitHub is updated, your function in Appwrite should have had a new deployment automatically

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more