Im trying to automate my function deployment using gitlabs ci/cd pipeline. Im currently failing trying to use the appwrite cli to create a new deployment.
``` appwrite functions create-deployment --function-id $FUNCTION_ID --code "." --entrypoint "dist/main.js" --commands "npm i -g typescript && npm install && tsc" --activate true
No matter how I change the --code parameter I cannot get this command to work even when trying to execute it myself and not in the pipeline:
```
Error: File not found in payload
at _Client.<anonymous> (C:\Users\***\AppData\Roaming\npm\node_modules\appwrite-cli\dist\cli.cjs:110410:15)
at Generator.next (<anonymous>)
at C:\Users\***\AppData\Roaming\npm\node_modules\appwrite-cli\dist\cli.cjs:109848:67
at new Promise (<anonymous>)
at __awaiter (C:\Users\***\AppData\Roaming\npm\node_modules\appwrite-cli\dist\cli.cjs:109830:10)
at _Client.chunkedUpload (C:\Users\***\AppData\Roaming\npm\node_modules\appwrite-cli\dist\cli.cjs:110407:12)
at Functions.createDeployment (C:\Users\***\AppData\Roaming\npm\node_modules\appwrite-cli\dist\cli.cjs:116010:24)
at C:\Users\***\AppData\Roaming\npm\node_modules\appwrite-cli\dist\cli.cjs:143588:111
```
What does that error mean? Is it even related to the --code parameter?
Recommended threads
- SSL for SaaS
Hi everyone 👋 I'm building a website builder SaaS using Appwrite Cloud Functions My architecture relies on users connecting their own custom domains via CNAME...
- User Limit Bug
How can I disable Appwrite client SDK registration? I have heard the solution to set the User Limit to 1. But everytime I set it to one it will automatically se...
- Create file is listing files instead of ...
This is a bit strange but, I cannot create files from within a funcion. I have tested with latest SDKs versions of node and python, both instead of creating the...