The local changed code is submitted to the remote warehouse for deployment. The files in the public directory of the remote warehouse need to be retained. Now every time the local code is pushed to the remote, the public directory will be cleared. What should I do to make the files in the public directory of the remote warehouse clear? Will the file be deleted?
It shouldn’t be a direct replacement...
Generally, the code is first cloned into the deployment directory (Alibaba Cloud's CRP, you can send the source code package to the server, and then call the deployment script), and use the deployment script to do online processing (replacing files, modifying configurations, etc.)... For example, if you Public should not be overwritten. You can just write the logic in the deployment script. Generally, the project directory will not be directly replaced.