How to make a production build without arsov within the same repository?
Broken head could not figure out how to organize the Assembly and deployment of the project (now use networks ci) in such a way that to the master branch, which overflows on the prod, did not get sorcy, but only compiled and minimized js/css
ladarius_Friesen23 answered on March 23rd 20 at 18:41
First, I note a couple of points:
1. Do not store in the Gita any derivative of the code. That is inficirovannye scripts, styles, etc. They should be collected from sources at the stage of building and they should not nositsya no changes - all changes only in the source code.
2. You wrote that the customer can edit the css, etc. Then you need to understand that this is not part of your application and your code. It is already user data in the repositories it is not the place. If you have a desire to versioned - you can use them to your git repository.
> I want to have on prod only build of the project without sources.
There are many ways to do it. Alternatively, you can have on the prod project repository and deploy to use it for building a specific instance of a system. Then on the server you have the source be, and will be easy to obtain any version, as that repository, but in instances of the system - only what is necessary. Or, you can CI server to bildit the project and is ready to transmit to the server.