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
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this
- How to determine if a user is anonymous?
This is probably a silly question, but I have not yet found a good answer. Is there a method to determine if the current session is anonymous aside from seein...