coscinoOriginal post
Rank 1: Thread
I am learning how cloud functions work and I deployed an hello world function that gets activated in my flutter app when i tap a button.
I created this cloud function in the /cloud_function sub directory of my github repo, using the nodejs starter.
Now I am trying to create a second nodejs starter function in the same folder of the repo with appwrite. I don't know why but function deployment fails(Unable to push code repository: ), so I try to redeploy and it says the function is ready, but i don't see any commits on my repo, even when i click on activate.
Why?
This is the log of the second deployment:
Preparing for build ...
Building ...
added 11 packages, and audited 12 packages in 2s
2 packages are looking for funding
run `npm fund` for details
2 moderate severity vulnerabilities
To address all issues, run:
npm audit fix
Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 8.6.0 -> 10.4.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
npm notice Run `npm install -g npm@10.4.0` to update!
npm notice
Packing build ...
Build finished.
Summary
Developers trying to deploy a cloud function on GitHub encounter issues when deploying a second NodeJS starter function with Appwrite. The deployment fails with the error "Unable to push code repository." Despite appearing ready, there are no visible commits on the repository after clicking activate. The log of the deployment process shows the build completion with some package vulnerabilities and a notice of a new major version of npm available.
**Solution:** Try running `npm audit fix` to address vulnerabilities and update to npm@10.4.0. Ensure that the deployment process is properly set up with Appwrite and that the repository access permissions are correctly configured.