Hi, I want a nodejs cloud function to run a command (flutter build web) on a docker container with flutter installed on it. I cant make it work on appwrite for now. This feature very much depends on the underlying stack so making it work on another runtime outside appwrite will not help me much. Is there a way to attach vscode debugger to the nodejs runtime used by appwrite so I can debug step by step ( like on the firebase emulator) ? I am supposing that the nodejs cloud function code is run inside the appwrite-worker-functions container, but I might be wrong.
Why do you need to run flutter build web? What exactly is your use case?
I need to build browser extensions on the fly based on flutter apps, so I need to transpile it to javascript with flutter build web
This can't be done as part of your CI jobs instead?
I guess it could be handled by a CI tool but that would be a kind of overkill solution since I really only need to run this single command. But yes, let s say I am building a mini-CI tool with appwrite except the code is customers code, not mine.
My question was more about debugging in general , could be php, nodejs , java etc... There comes a time where you need to stop the execution and use a debugger.
Debugger is entirely a different topic. You won't be able to attach a debugger to an Appwrite function
For this, I would suggest 👍 this issue and commenting with your use case: https://github.com/appwrite/appwrite/issues/1037
Although in the future, you might be able to install flutter as part of the function runtime build process
I had a quick look inside appwrite code. It seems you use utopia php for docker container orchestration of the runtimes. It would certainly require some work but I don t see why technically speaking it would'nt be possible to attach a debugger inside a container.
What I understand is that you suggest that I rebuild the nodejs image adding flutter so I could launch flutter build web straight from the cloud function js code.
You could try that if you want. We don't support any of that, though
Okay, I will try that. Thank you for your time Steven.
Recommended threads
- Having issues with login via CLI
``` ~/appwrite appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...