Hosting server integration with local server

1

I will integrate the system hosted on the kinghost server with a local server. The idea is that when updating some content on the hosting server update the system content of the local server, and when updated some content on the local server the same is updated on the hosting server, always comparing whether the content exists or not to not duplicity. We have the cron job tool, which runs scripts automatically. I need to know if the cron job with any php application can make the integration work? If anyone is any suggestions or pass some content that shows how to make a script similar to this situation, please make it available, I think a lot of people have this doubt.

    
asked by anonymous 30.09.2015 / 16:56

1 answer

1

My friend, I think we need to keep up with the latest technologies.

If we are going to deal with controle de versão it is mandatory to use such a tool for this purpose.

What is version control?

What is git?

Git is a version control system, designed primarily to make life easier for those who want to run team projects, allowing two or more people to work together. But it is also used by those who work alone, due to the possibility of 'controlling' project versions.

A version control system plays the role of "joining" the parts of the project, so that each team member plays a part, and using that system you can put everything together in the end.

Of course, it's a lot more complex, but the initial concept is this, every team member has their Site folder, works during the day, and in the end Git puts everything together in a folder on the 'Main' server, preventing files from being overwritten and also storing individual logs and history for each team member.

Another advantage of git is the ability to control the project in a decentralized way, that is, without the requirement of a 'Master' server.

Source: link

What tools for version control?

Github for public or private projects, but you have to pay for the plans.

Bitbucket is for private projects with up to 5 developers in free mode.

Why have version control?

Version control keeps all your instances up-to-date, be they in branch produção ou desenvolvimento .

Keeps track of all changes to your code, along with updates and permissions rules for developers.

If you have further questions, please thread can help you.

    
30.09.2015 / 19:02