-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
myenv subfolder is getting copied when serving the application #99
Comments
Hello @mmabrouk, I modified the P.S: When I run the command |
Hi, |
@mmabrouk, here's how the prototype I built works (yet to be tested using the CLI): Allow the user to specify the environment folder name to exclude in the config.toml file that gets generated when they initialize their application. In a case where the user did not specify the folder to exclude, they get asked by the CLI when they run the command With the above approach, users can define the name of the environment folder to exclude by editing the config.toml file before running the variant command ( |
Hi @mmabrouk, I have considered using git directly and have come up with a proposed solution (in addition to the prototype) to exclude the environment folder during the build process. This solution will allow users to easily manage which folders they want to exclude without having to modify the configuration file, config.toml, explicitly. Here's how the process would look step-by-step:
What are your thoughts on this? I'd also like to get a second opinion on this solution, as it provides a simple and user-friendly way to handle the exclusion of the environment folder without requiring the user to edit the config.toml file directly. |
Currently we do test manually using the examples in the folder examples. I would welcome any proposition for 1) a manual testing protocol 2) automatic testing in a later stage point Here are my thoughts about the solutions: Solution 1:
Solution 2:
|
@mmabrouk, thank you. I'd suggest we go with solution 2, as it stands out to be the preferred approach in the industry due to its simplicity, familiarity and its alignment with best practices in Git version control. By leveraging .gitignore, the project can provide an effective and user-friendly way to handle exclusion of folder without complicating the CLI or even disrupting the development workflow. |
In addition to solution 2, we can also borrow some of the ideas in solution 1, too. |
Describe the bug
The way agenta serve works is that the whole folder is compressed and sent to the backend, which decompresses the folder and then create a container out of it.
The problem is that our tutorials ask the user to create a virutal environement in the folder they work in to test the app locally before serving it.
This means the whole myenv folder containg the python files (200M) is being compressed and sent each time to the backend which takes an eternity.
Expected behavior
We should find a way to solve this. The problem is the name of the folder can change. Some possible solutions are:
We should research how other platforms do this (steamship, railway.app...)
In the long run, if we connect with git directly, then we make selecting the files a problem for the user.
This connect to #60
The text was updated successfully, but these errors were encountered: