Good afternoon, colleagues!

There is a question, what are the ways to facilitate the life of a web developer in editing the site downloaded to the hosting site on cms. For example, you need to modify the new functionality, with the change of many structures, and records in the database?

I have two options (both slop)

  1. Pour the entire site and base on the computer, share them on the local machine, after the changes fill back, cons - very gemmno, large volumes have to transfer, well, while the site is on local refinement, its original can be replenished with materials that can be downloaded after downloading.

  2. Next, download one file by one change, upload it back, it is very dreary to track the result, change a couple of lines, overwrite the file, and so on to infinity, well, plus mega many actions for a simple task.

In general, experienced web developers, how to carry out this action according to all the rules of etiquette =)

  • 2
    git, git, git, git, mercurial> its original can be replenished with materials let the materials be stored in the database regardless of the engine files> both slop sucks the very idea: The engine at this moment breaks irrevocably * The final version is stored on some server there, as a result of which, if one server crashes, EVERYTHING is lost and the next one cannot be promptly raised
  • 2
    and it becomes particularly scary when one file is fixed by two developers, both are uploaded - here comes the roulette :). Sometimes it can be the same developer - fixed locally, fixed on the server, uploaded to the server ... - KoVadim

3 answers 3

Make a copy of the site and database in a subfolder on the hosting, and modify it. When everything is ready, in the middle of the night, transfer the modified / added content from the old database; check everything again, and swap "sites". If something goes wrong, you can still roll back relatively painlessly.

If everything is completely difficult, you need to declare a curfew and ban users for a while to change something in the database - read only. To plan in advance how much time it will take, double it, and solemnly announce to everyone: turn off such hot water from such numbers from 8 to 16!

    what are the ways to facilitate the life of a web developer

    1. Work in the same environment as hosting. That is, not in Windows (unless, of course, hosting is not Windows, but people who consciously go for it do not ask such questions).
    • one
      this answer will be incomplete without the word "virtual" - now you can raise a virtual machine from almost any OS on almost any computer. This does not emulate the situation completely according to all possible criteria, but there will be no noticeable differences from the development side in php. - etki
    • Once, a long time ago, I had 5-6 cars in my driver. Now I have grown wiser. And I work in Debian, and the only Windows image in the virtual machine is run out of nostalgia. - user6550

    The site code can be edited through various IDEs (such as NetBeans or Eclipse). By creating a special project connected to your site. Any changes you make in the development environment will be saved on the site. Development environments also support synchronization with git and svn version control systems. And with the base, you can work with a standard client that comes with MySql or oracle subdirecting by connecting to a remote database.