Back

[SOLVED] Cloud function build commands not set by default

  • 0
  • Functions
Chandan Gowda
26 Nov, 2023, 14:46

I have to deploy and then set the build commands on my own. This takes a lot of time while developing and smoke testing the function.

TL;DR
Cloud function build commands are not set by default. The solution is to add the build commands in the `commands` parameter in the appwrite.json file. This will save time as it will automatically install the required dependencies.
Chandan Gowda
26 Nov, 2023, 14:46

I'm using Python 3.9 runtime

Chandan Gowda
26 Nov, 2023, 14:46

Is there a way to specify the build_command through appwrite.json

Chandan Gowda
26 Nov, 2023, 14:50

Its not installing the required dependencies by default. I have to everytime use the appwrite console for doing it

Drake
26 Nov, 2023, 16:01

Yes, add it in commands param

Drake
26 Nov, 2023, 16:01

Though, what version of the CLI do you have?

Chandan Gowda
27 Nov, 2023, 10:16

2.0.2 (Update it to 4.2.0 now) Thanks

Chandan Gowda
27 Nov, 2023, 10:16

Thank you. This will save a lot of time 🙂

Drake
27 Nov, 2023, 16:22

[SOLVED] Cloud function build commands not set by default

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