I'm new to the world NodeJs and Git, I'm trying to develop from a system where users upload images.
Every time I deploy the app, users' images are deleted from the public / uploads /
How do I proceed so people's files are not deleted in this case case? I tried to use .gitignore in the uploads folder, but it did not help.
I thought of hosting the images on a server separate from the server where the app is, but only if it does not have another way.
I need a way to keep the public / uploads / folder unchanged when doing some deploy.
Note: The site is in NodeJs. Deploy is done using Git on the Openshift server.