
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
- Missing C++ libstdc library in Python fu...
I have a function running Python 3.12 which suddenly started dumping errors (as of today; it worked yesterday). I hadn't changed any code so I found this odd, b...
- Error during migration
my current appwrite version is 1.7.0, and i want to upgrade it to the latest version 1.7.4, since i am experiencing an issue where my appwrite console is not op...
- Treafik dashboard and ssl
I tried to use Appwrite as self hosted. Everything is cool, but I want to see the traefik dashboard. Is there any way to put out to a subdomain (like dashboard....
