Rank 2: Process
Where exactly do I add dart in my .env file?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Where exactly do I add dart in my .env file?
Rank 3: Container
Rank 2: Process
ahh okay
Rank 3: Container
after adding you need to restart your docker
Rank 2: Process
And the dart I chose is the dart that is installed on the system where i self hosted appwrite correct?
Rank 2: Process
the dart version*
Rank 7: Quantum Computer
Yes
Rank 3: Container
each function runs in a separate container, your vps dart does not influence your functions
Rank 2: Process
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
Admin
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
Rank 3: Container
it will "download" the correct sdk. No need to worry about it. Just put it in your .env file and everything should work.
Rank 2: Process
Now it clicked, cool thanks 😄
Rank 2: Process
Btw, Can I safly remove function runtimes that im not going to use such as ruby or php?
Rank 3: Container
yes
Rank 2: Process
Will it remove them aswell so that I can save space on my tiny tiny raspberry pi?
Rank 3: Container
Admin
probably best to do docker system prune to clear out unused images
Rank 2: Process
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
Rank 3: Container
you need at least 2gb ram
Rank 3: Container
Rank 2: Process
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)
Admin
It might be able to run....just very slow, if you enable swap.
Admin
Best to create separate distinct posts
Rank 2: Process
[SOLVED] Write cloud function in dart