A
A
ARezvanov2017-12-13 17:07:00
ASP.NET
ARezvanov, 2017-12-13 17:07:00

Test server + Production server + Git + TeamCity how to organize work correctly?

Hello!
Share your experience of setting up a test environment for web development.
At us now so:
The project is Back WebAPI + Front SPA (MVC)
There is a fighting server.
There is a test server.
There is a combat database, both the combat and test server are connected to it.
There are several branches on the git. The master branch is a production branch, and upon any change, TeamCity collects the project and publishes it on the production server.
There is also a developer branch on the git, when it changes, TeamCity builds the project and publishes it on the test server.
Everything would be fine, but there is one snag. On the front in one of the files is assigned the IP API of the server. And for the test and combat assembly, it differs in the port.
And every time you need to commit changes in the master branch, you have to manually change this IP, which is inconvenient.
So, how can you automate this process, or organize the work to get rid of manual file adjustments?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Astrohas, 2017-12-13
@ARezvanov

Well, you can add a file with local settings to gitignor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question