How to choose between using git, hosting it on your own VPS, or Coding.net?
黄舟
黄舟 2017-05-02 09:29:31
0
3
675

Beginner to learn git. Not understanding the differences between various ways of working. I hope you guys can help me compare.

Three places to put code: VPS, Coding.net hosting, local machine

There are three methods now:

  1. VPS creates a working directory. On this machine, using git clone
    directly on the working directory requires an extra step of git reset --hard master. This will not be automated

  2. VPS has a repo, a working directory, and creates hooks. Using this machine, you can use git-hook

    to submit the repo
  3. Create repo in coding.net, create webhook, and automatically git pull in vps.
    This can use the provided webhook

This is the method I have learned so far. Are these three methods the most efficient?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
世界只因有你

Actually, what you want to ask is how to simply perform continuous integration/deployment, right? It is safer and simpler to host the code on a third party and use webhooks.

If your code needs to run unit test or build before deployment, you may need CI. There are many free CIs available, and most of them also support auto deployment. For example: travis-ci

淡淡烟草味

Static files are served directly using coding pages. Nodejs uses PM2 for deployment.

我想大声告诉你

Is there any necessary connection between learning Git and buying a VPS?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template