Host server integration with local server

Asked

Viewed 83 times

1

I will integrate the system hosted on the kinghost server with a local server. The idea is that when some content is updated on the hosting server update the content of the local server system, and when updated some content on the local server it is updated on the hosting server, always comparing whether the content exists or not so there is no duplicity. We have the cron job tool, which runs scripts automatically. I need to know if cron job with any php application can make the integration work? If anyone is any suggestion 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.

  • There are many tools for this, I’ve seen some using Workbench, and phpMyadmin itself, something more manual would be to have a table in your database with change and inclusion logs with date for each table and field, and create a synchronization for this

1 answer

1

Friend, I believe that it is necessary to update little with the current technologies.

If we’re gonna deal with controle de versão it is mandatory to use such 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 projects as a team, allowing two or more people to work together. But it is also used by those who work alone, due to the possibility of controlling' the versions of the project.

A version control system makes the role of "joining" the parts of the project, so that each team member does a part, and using this system it is possible to join everything at the end.

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

Another advantage of git is the ability to control the project decentrally, i.e., without the requirement of a 'Mestre' server.

Source: http://www.contagia.com.br/blog/git-pra-que-serve/

What version control tools?

Github for public or private projects, however it is necessary to pay the plans.

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

Why have version control?

Versioning keeps all your instances up to date, be it in branch produção ou desenvolvimento.

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

If you have any further questions thread can help you.

  • Thanks for the reply, I will review the content you left available.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.