Answer the question
In order to leave comments, you need to log in
How to work with files uploaded to the server?
Perhaps the question in the title is not quite correct, but I do not know how to describe it better.
In general, there is a statics folder on the backend where I upload files. Before, I threw them there manually, uploaded them through commits. In my case (simple blog) it was enough.
Now I have complicated the logic, the files are uploaded via api. How to make sure that when git pull files are not rubbed?
The solutions that come to mind seem like crutches, there is probably one right way.
Add. condition:
For development mode, I use a local server, but the connection to the combat base (cloud). Here an interesting point arises - when I add a record that contains a file, it gets into the database, but the file is on the local. If we take some simple solution, like throwing the static folder into gitignore, then files uploaded locally will not be pulled up to the server. It is possible that no one does this and everyone immediately pours it onto the working server, but mine is not yet available, and the content needs to be prepared.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question