Updating the client or api code in deployment and recreating the docker will not update the content #2088
Replies: 2 comments 6 replies
-
This seems to be more of a user error than anything else, in my opinion. Logically, the code will not update if you pull an image, which makes sense upon reflection. This is the reason why most people avoid doing development work directly with Docker. Even when setting the docker-compose file to build, the process of rebuilding to test every change is too time-consuming and doesn't make sense 🤷♂️. |
Beta Was this translation helpful? Give feedback.
-
Yes you are right, it is user error than anything else, however, the code setup is not intuitive and nothing hints that + in the documentation there is a whole section that explains how to change the code but the example it uses to change the code is the only file that this procedure works for, moreover there is a dedicated command for this file but the command name give you the impression that it supports all changes. But my main point is this: fixing the way the dockers works + clearer documentation could help avoid such misunderstandings in the future. An alternative is not to define the docker as the recommended was of the project. |
Beta Was this translation helpful? Give feedback.
-
What happened?
I followed the documentation https://docs.librechat.ai/deployment/docker_ubuntu_deploy.html#part-iv-editing-the-nginx-file-for-custom-domains-and-advanced-configs
updated the client code, recreated the deploy-compose.yml dockers but the change was not reflected in the dockers so I wasted 2 days to understand why it does not work.
After wasting a lot of time and doing a long research I learned the very hard way that it is actually written in the doc itself some line down the road as a shaded note.
This Note is very easy to miss especially since the guide suggests to create a branch and commit it the new branch and do:
"
"
and only after you are all set - then comes the note. (It should have been before the all-set and much more visible, mainly since it is a surprising note when you are just explained to commit to a branch and do a rebase as a system, while the truth is that it will only work for the file in the example !!!)
The bug is not the documentation, per see - it only adds oil to the fire, Given the fact the docker-compose is the recommended installation and deployment, you might think that this is the recommended way to develop, which today IMO is problematic, to say the least, not only that there is no good documentation for setting up for development, but the dockers system has many bugs (will open issues for specific issues later)
Steps to Reproduce
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions