M
M
Mistadrumma2016-05-31 19:32:34
git
Mistadrumma, 2016-05-31 19:32:34

How to properly use push and OpenShift service?

Hello!
I have a problem pushing changes through git.
OpenShift is organized like this: If we push changes to the server, the deployment build is updated and immediately deployed. If I continue to create articles by adding pictures to them, they add up, let's say, to the media folder on the server in the deployed application. Next, I make changes on the local repo and push, since there is no media on the local repo, the deployment assembly is updated and deployed, overwriting my dynamic content.
Tried to pull, but it compares to the deployment build, not to what I have already deployed.
That is, in order to add pictures through the admin panel in production, it turns out that I need to do the same on the local repo, this is somehow not right. I tried to add a folder to gitignor, but again, it will update the assembly for deployment in which there is no media, and deploy it, thereby losing dynamic content in production.
It's hard for me to explain, I think those who worked with this will understand what's going on and know the answer.
Help me please.
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question