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
- 1:1 relationship doesnβt sync after re-a...
Hi, Iβm trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...