Best version control for a one man web app?

前端 未结 19 786
孤城傲影
孤城傲影 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: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

提交回复
热议问题