Hi there, what could be the best way to reduce the size of repository for a function deployment ?
I'm trying to deploy a repository with a size around 74MB's. Facing the following build error on appwrite console:
Bash
Repository directory size should be less than 28.61 MBs.
Summary
Developers need to reduce a repository size for function deployment due to a build error indicating a limit of 28.61 MBs. Suggestions include hosting assets externally and pulling them when the function starts. Compressing source files and minimizing attachments like additional Python scripts, JSON, and text files may help reduce repository size.
Binyamin
Mar 15, 2024, 13:34
What langague ?
Alexandre
Rank 1: Thread
Mar 15, 2024, 13:34
Python
Binyamin
Mar 15, 2024, 13:35
Mm, It will be hard to find a way around it.
Binyamin
Mar 15, 2024, 13:36
From what I see you'll need to reduce the size on your side
Alexandre
Rank 1: Thread
Mar 15, 2024, 13:41
Like compressing source files ?
Binyamin
Mar 15, 2024, 13:41
Is your code weight 74MB or it's attached assets?
Alexandre
Rank 1: Thread
Mar 15, 2024, 13:48
The main.py is just 16.5kB, but I have many files attached. Among them more python scripts, json, txt...
Binyamin
Mar 15, 2024, 13:53
What I would suggest it to host the assets file in some bucket, and you can pull them when your function starts