Best version control for a one man web app?

前端 未结 19 717
孤城傲影
孤城傲影 2020-12-08 08:28

I\'m just learning how to do things, and want to start using some sort of version control for a web app.

What\'s most appropriate for deploying a python or php web a

相关标签:
19条回答
  • 2020-12-08 08:58

    Nowadays the hype around DVCS.

    I prefer Bazaar.

    Because of it's name, the support, the feature set, and it works well on my window$ machine too.

    0 讨论(0)
  • 2020-12-08 08:59

    SVN, but you need to be able to easily deploy your webapp with SVN.

    Since it is not always a simple task, so I just point out this article which may be of interest for your project.

    General principle:

    • Configure Apache on your development server so that it picks up your checked out working copies as separate subdomains. Using this, you can simply make a checkout of your project and it will automagically be up and running. No need to touch the Apache configuration. You need a DNS wildcard entry so that all subdomains of dev.example.org go to your development server.

    The only problem with using the above Apache configuration locally is the DNS wildcard. Unless your desktop is assigned a hostname by your network's DNS server and you can set the wildcard there, you will have to make do with your localhost address. You can install dnsmasq to act as a local caching DNS server and put the wildcard on your own machine

    • Use dnsmasq so you can achieve the same effect on your own development machine. That way you can develop your web applications locally and you won't need a central development server. In my examples I will be assuming you use subversion for your version control, but it works virtually the same with other version control packages, such as git or bazaar.

    Note: (Humor)
    This other question on Subversion allowed me to point out to this article about publishing its (source-controlled) data into production, with in it probably the ugliest diagram I ever saw on the topic ;-)

    diagram

    0 讨论(0)
  • 2020-12-08 08:59

    The answer really depends on your way of thinking. I personally had problems switching to subversion from SourceSafe. If you come from microsoft shop, I'd suggest using SourceGear Vault, it is free for <=2 users. If you come from non microsoft area, then using subversion would be preferrable. Also please consider git if working on linux. HTH, Valve.

    0 讨论(0)
  • 2020-12-08 09:00

    For a one-man job, pretty much any revision control system will do the job. It's when you get into multiple people, and past that into multiple repositories, where there start to be differences.

    Given that, I'd go with whatever Free Software system your development environment supports best. I see Subversion and Git mentioned and both are fine choices.

    0 讨论(0)
  • 2020-12-08 09:02

    If I had not bumped into git, I would've doubtless gone with SVN. Having said that, I would recommend git.

    0 讨论(0)
  • 2020-12-08 09:02

    CVS - No, I'm not joking. Not that it is better (it is not) or the simplest (it isn't), but it really doesn't matter at the end of the day. The important thing is to get started with ANY version control system even if it is a one-developer shop, even if it is CVS.

    0 讨论(0)
提交回复
热议问题