Where exactly do I add dart in my .env file?
ahh okay
after adding you need to restart your docker
And the dart I chose is the dart that is installed on the system where i self hosted appwrite correct?
the dart version*
Yes
each function runs in a separate container, your vps dart does not influence your functions
so when I specify dart-2.19.4, is it pulled form docker or is it the local dart sdk that is installed on the system
The dart version on your machine doesn't matter. we have dart docker images for various versions of dart. You must use 1 of the supported runtimes as described in the docs: https://appwrite.io/docs/functions#supportedRuntimes
it will "download" the correct sdk. No need to worry about it. Just put it in your .env file and everything should work.<:appwriteheart2:1073243188954935387>
Now it clicked, cool thanks π
Btw, Can I safly remove function runtimes that im not going to use such as ruby or php?
yes
Will it remove them aswell so that I can save space on my tiny tiny raspberry pi?
https://jimbobbennett.dev/blogs/install-appwrite-rpi/ <:appwritepeepo:902865250427215882>
probably best to do docker system prune to clear out unused images
I saw that aswell, but I think the raspberry pi I own (pi 3 b+) is not fast enough for appwrite π¦ It only has 1gb ram I think
you need at least 2gb ram
When doing appwrite init function im getting the following:
β Error Command failed: git clone --depth 1 --sparse https://github.com/appwrite/functions-starter .
Cloning into '.'...
fatal: cannot change to 'https://github.com/appwrite/functions-starter': No such file or directory
error: failed to initialize sparse-checkout
any ideas why this is happening?
Input:
? What would you like to name your function? Is Already Registered
? What ID would you like to have for your function? unique()
? What runtime would you like to use? Dart (dart-2.17)
It might be able to run....just very slow, if you enable swap.
Best to create separate distinct posts
[SOLVED] Write cloud function in dart
Recommended threads
- TOO_MANY_REDIRECTS after temporarily ena...
I am losing my mind over this, I enabled this setting because I was having issues with sites not making links with https. I enabled it, ran into issues, so I di...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I canβt fin...
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...