3
I have already done some research but unfortunately I could not find a solution that I could do in my case.
So, work on LAMP stacks and for a customer there is the problem of having to work simultaneously on three different trunks of the same project. So, at this time, there are three hosts (on the same server):
develop.myproject.ext
testing.myproject.ext
production.myproject.ext
As conceivable, the project has this course: 1. new features are developed on the develop
version of the project 2. just finished, they are "copied" to the testing
version, where testing is done by customer 3. Once everything is working and customer approves, the changes are reported in the production
version
I use Elementary OS and Sublime Text 3 with the SFTP plugin (each time a file is edited, the save is automatically loaded on the destination host).
At the moment, I use a method not very convenient, that is, a file where I keep track of the updated files for each host, which is very dispersive (i need to know for every host where i loaded which file) and the thing is likely to create conflicts in case there they are both development and testing (for example, I have version 1.2 of a develop
file, 1.1 on testing
, and 1.0 on production
).
Is there a methodology, a program, in short, something that can facilitate this management?
I have already evaluated the option to use Git (Gitlab in particular), but this assumes that it has to pass each time from the terminal (or use plugin on Sublime Text) to load the file and still have three separate branches, which seems, however, unmanageable (I do not need to have all the history and functions that git offers me).
Since all three hosts operate on different databases, it would be convenient to have a management tool that automatically migrates the entire database from production to the other two hosts (the one that is constantly updated). However, this is not particularly urgent because I have found a temporary solusion using a series of automatic bash scripts.
Thanks to anyone who decides to help me.
The methodology you are looking for is called "continuous integration". It can be automated using something like Bamboo or similar products. – Burgi – 2017-09-06T07:59:52.607
Thanks for the suggestion, I did not know there were such tools. I'm evaluating the best option to use. – mimet – 2017-09-06T14:06:09.743