Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • This is some great information, thank you. I do have a couple of follow up questions, that may sound a bit noobish. First, why is it not a good idea to deploy with git? I can see how my need to name things differently due to them being on the same server is an issue, but what if my local repo and production repos were on completely separate drives with no chance of naming conflicts? Would there still be issues? Commented Sep 8, 2022 at 15:09
  • Second question here for clarity. Due to being self-taught, I'm a bit fuzzy on what you mean by 'deploy the application.' Does this simply mean somehow pushing updates to your live code, or is there some other containment process here that I'm missing? (And I don't mean containers like Docker or anything like that) Commented Sep 8, 2022 at 15:10
  • @confused_nomad: deploying typically means moving the files to the servers, applying configuration changes, and perhaps even data updates. This could also include making a backup copy of files, if necessary. Basically all the steps it takes to put updated application code out on to the servers. As for why Git is not good for deployments? That is situational. You can "git pull" from the servers, but that assumes you only need app code changes. As soon as your deployments need more than that, Git becomes useless. Commented Sep 8, 2022 at 15:40
  • I just realized something and don't know why I didn't mention it earlier, but the post-receive hook in the bare repo is a shell script. Does this still go against the steps you were recommending? Commented Sep 8, 2022 at 18:51
  • @confused_nomad: it still executes as part of your version control workflow. This couples version control to deployment, and yes, it go against the steps I am recommending. Commented Sep 8, 2022 at 19:40