I am currently on Appwrite 1.2.0 the cli version is 1.2.1 The dart sdk is 2.17.0
When i create a function ( a fresh one, not change at all ), the build fails, here is the log (attached)
Hi, let me have a look
Ok ok no pb
hi, any updates?
Apologies for being late regarding this, are you running docker on windows? also can you please make sure that Appwrite is in its latest version?
i don't think it is a windows machine... It is an image from GitPod, Appwrite is not at the latest version I will try upgrading and see
AOT compilation failed error might hint that the memory dedicated to the function is not enough. Can you go to your environment variables and set _APP_FUNCTIONS_MEMORY and _APP_FUNCTIONS_MEMORY_SWAP to a number you want? please not the values are in MB so maybe try assigning 2048 MB? by default they are set to 0. If this does not work, let me know because then it might not be a memory issue
ok. ok let me do this now
The current values were
_APP_FUNCTIONS_MEMORY=256
_APP_FUNCTIONS_MEMORY_SWAP=256
Changed to 2048...
Worked like a charm π
but isn't 2048MB a lil too much π [edit] Changed the values to 850... it has been building for the last 20min ......
I think that giving a value of 2048 might be too much ? Running on NodeJs works with 256.. Do you think it is better to keep it at 256 and use node instead ?
you could try 1024 to see if it works. dart has to compile to binary so it takes a bit more memory to build, but, when it runs, it's faster than node
ok ok
will do that now
Yes build time was 15seconds with 1024 I guess it is cool then π
[SOLVED] Cannot deploy functions from the CLI on dart environment
Recommended threads
- THE COLUMNS STUCK ON PROCESSING HOW DO I...
I HAVE SELF HOSTED THE APPWRITE ON VPS
- Impossible to create project via CLI?
Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it man...
- Understanding S3 setup with appwrite
Hey, i'm planning to change the storage from local to S3, tho i have some questions to see before starting the migration. 1. Does all the `/storage/<storage_ty...