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
What do you mean with "github actions"?
Are you on Cloud? Does the function settings show the function is connected to the github repo?
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
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
Recommended threads
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...