简体   繁体   中英

php - mysql - application and database updates deploy via tfs

I'm new to tfs. We only have access to the latest free version due to budget constraints. We locked behind firewalls and do not have direct internet access. Every part of the solution needs to be self sufficient. We working on a php application using mysql running on both windows and ubuntu servers. Currently we are deploying manually to 4 servers. Plan is to expand to possibly 100 servers. Installing new servers is easy, but the challenge is with constant updates to code pages and possibly DB changes both in structure and data. We have found limited information about deploying via tfs. We have found a number of technologies like tfs, git with gitlib, jenkins and other, but no basic description of how all of these would work. What is needed and how to do it. Any advice will be greatly appreciated.

If you use VSTS, deploy a private build agent is necessary, so that it can access all your servers.

Copying files to the www root folder on your servers is easy to achieve. You can create a build or release definition , and add a Windows Machine File Copy task in the definition to copy the files to remote machines.

Regarding DB changes, you need to check whether there are command lines, or script or api for workbench to restore the DB of MySQL. In this way, you could add Command Line task or Script task in your build/release definition to restore it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM