Back

What files are included when we do `appwrite deploy function`?

  • 0
  • Functions
skavank
20 Jul, 2023, 07:26

I'm using a local library, installed with yalc (https://github.com/wclr/yalc) to mimic a local package manager. It looks to me that deploying a function does not include the .yalc folder created at the root of the function. Does the uploader ignore folders prefixed with .?

TL;DR
The user is asking what files are included when using `appwrite deploy function` and is experiencing some confusion. They tried adding dot-folders in `src` and found that they are included, but adding them to the root does not include them. They also mentioned that the deployed function may be restructured when built, causing file paths to not match. They suggested having a `--verbose` setting to see what's happening. Additionally, they mentioned using a local library installed with `yalc` and found that the `.yalc` folder is not included when deploying a function. They questioned if the uploader ignores folders prefixed with `.`
skavank
20 Jul, 2023, 07:33

Would be nice to have a --verbose setting to see what's happening

skavank
20 Jul, 2023, 07:36
skavank
20 Jul, 2023, 07:58

Okay, so, adding dot-folders in src seems to include them, but adding them to the root does not. Or maybe the deployed function is restructured when built, so the file paths do not match or something?

Drake
20 Jul, 2023, 17:20

Your appwrite.json file has a path param for the function. That is what gets uploaded (except for what is mentioned in the .gitignore).

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