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
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...