I'm used to working immediately on the production server. But now I often come across serious projects, tasks, bitrix, and so on. I want to learn how to do as expected. Develop locally, test, upload to production via git. The manuals in the network are all in pieces and difficult to assemble a puzzle. Please describe in steps the steps of building a working environment. The beginning is this: a client appears, a website on the server. Suppose you need to drastically modify. What actions?

My vision in words: upload the site code in git, upload a copy locally to the virtual machine (apparently vagrant). All this is interconnected. Develop locally in phpstorm for example. Then kommitit through git in production. Right?

Passing question: how in this case to configure xDebug in PhpStorm for debugging on the virtual machine? When I create a project there are options, remote machine, local and so on. But virtualka is, after all, essentially "remote"? But then he tries to copy everything locally. Can you recommend some kind of video course like linda.com or a book / article.

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants aleksandr barakin , VenZell , D-side , Abyx , PashaPash Mar 29 '16 at 14:05 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 3
    several completely unrelated "questions", some of which is a request to write several manuals. please ask specific questions. one by one (using the "ask a question" button in the upper right corner of the page). - aleksandr barakin
  • 2
    The question is actually related. Write in general terms step by step how to refine an existing web project. - Dmitry Morozov
  • 2
    Agree with @DmitryMorozov. Just a question not a couple of sentences. - Zhukov Roman
  • 2
    I do not agree. Here are two loosely coupled questions: (a) how to use git in PHP projects when only a production server is given; (b) how to make PhpStorm perceive the project in Vagrant as local (debugger, source code). And there are generally true considerations (about how git usage looks like) that need no comment. So the question is worth sharing. - D-side
  • one
    Hm Version data in MySQL? Or a schema (tables, indexes ...)? - D-side

0