Are there any guides regarding deploying Swift functions to self hosted appwrite docker? Would be massively helpful.
The one I found is out of date https://dev.to/appwrite/create-and-run-welcome-email-appwrite-cloud-function-with-swift-2m1h
deploying to self-hosted vs cloud should be pretty much the same, so you'd follow the same docs: https://appwrite.io/docs/products/functions/deployment
I've tried with official doc a simple function results in error when deploying
what version of appwrite do you have?
1.4.9
What's your folder structure. How did you deploy and what are your function path and entrypoint settings?
I used manual deployment and uploaded code.tar.gz as attachement, folder structure as screenshot. Also included settings on appwrite.
Comparing with our starter template: https://github.com/appwrite/templates/blob/main/swift/starter/Sources/index.swift
The only significant difference is nesting (folder phone), and package name in Package.swift. Can you please try to copy what we do in starter? Once we have your function up and running, we can better spot what exact change is causing this fail, and implement a proper fix
After I trying with the code in starter the deployment is successful. However tried deploying again with the previous structure and it also succeeded
So we can mark this as solved now?
Yes
Heyo, please mark this as solved by adding [Solved] at the beginning of the title, thanks!
[SOLVED] Deploying swift function to self hosted environment
Recommended threads
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...
- Next.js SSR Site Times Out on First Visi...
Hey everyone, I'm running a Next.js SSR site on a self-hosted Appwrite server (v1.9.0), and I've noticed a strange behavior that I'm hoping someone can help me...
- Appwrite migration stuck on pending
Migration an existing self hosted 1.9.0 to a new VPS tuning self hosted 1.9.0.. import data recognises the api url, project id and api and then when I create, i...