Back

The file size is either not valid or exceeds the maximum allowed size

  • 0
  • Flutter
  • Functions
Ipsoka
27 Mar, 2023, 20:09

i did ctrl+c and did sudo docker compose up

TL;DR
The user is experiencing issues with function deployment in the Appwrite console. They are unsure about the purpose of deploying a function and how to interact with it. They also have questions about removing duplicate functions and using 'sudo' with Docker. Solution: It is recommended to use the 'appwrite deploy function' command to deploy the function. The user is advised to refer to the appwrite.json configuration file for more information. To remove duplicate functions, the user should check the Appwrite console. It is also suggested not to use 'sudo' with Docker, and to follow the post-install steps outlined in the Docker documentation. Additionally, the
Ipsoka
27 Mar, 2023, 20:09

should be enough right?

Binyamin
27 Mar, 2023, 20:09

Yes

Binyamin
27 Mar, 2023, 20:09

You can run docker compose up -d adding the -d will let it run in the background

Ipsoka
27 Mar, 2023, 20:09

Yeah but since im chaning a lot I prefer just running it in non detached mode and ctrl+c it

Ipsoka
27 Mar, 2023, 20:10

Just for development right now

Binyamin
27 Mar, 2023, 20:11

Can you try to deploy it using appwrite deploy function ?

Drake
27 Mar, 2023, 20:11

btw, unrelated, but you shouldn't really be using sudo with docker. perhaps you missed the post-install steps: https://docs.docker.com/engine/install/linux-postinstall/

Ipsoka
27 Mar, 2023, 20:21

Im a bit confused, I have a lot of duplicates of my functions, can I remove them somehow? When I run appwrite deploy function i see some functions with the same name, but they are neither in the folder nor does the appwrite console show them

Ipsoka
27 Mar, 2023, 20:23
Ipsoka
27 Mar, 2023, 20:25

Or maybe im not understand what a deployment is

Drake
27 Mar, 2023, 20:26

uhh that all comes from your appwrite.json

Ipsoka
27 Mar, 2023, 20:29

When doing this, I get no output

Binyamin
27 Mar, 2023, 20:30

You don't get this?

Ipsoka
27 Mar, 2023, 20:30

Yes I do but after selcting my function nothing happens

Ipsoka
27 Mar, 2023, 20:30

I think

Binyamin
27 Mar, 2023, 20:31

You select with space? then hit enter?

Ipsoka
27 Mar, 2023, 20:32

oh yeah didnt hit space,

β„Ή Info Deploying function hello_world ( 6421fc62827da9b87062 ) β„Ή Info Ignoring files using configuration from appwrite.json βœ“ Success Deployed hello_world ( 6421fc62827da9b87062 )

Binyamin
27 Mar, 2023, 20:32

πŸ‘

Ipsoka
27 Mar, 2023, 20:32

Soo.. what can I do with this now?

Binyamin
27 Mar, 2023, 20:32

That's it You function has been deployed

Binyamin
27 Mar, 2023, 20:32

Now you can run it through:

  1. Direct execution call
  2. Event triggering
  3. Planned cronjob
Ipsoka
27 Mar, 2023, 20:33

Ah I can execute it cool so deploying a function means enabling it? Now my app could use this function?

Ipsoka
27 Mar, 2023, 20:33

Oh yeah okay cool πŸ˜„

Binyamin
27 Mar, 2023, 20:35

You can check the status of it and other stuff in the Appwrite console

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more