Running a web app from a repository
Is a good practice to run a web app directly from a repository checkout? i.e. if I do a git clone
and then start up my backend servers wh开发者_StackOverflow中文版ich the front end proxies to.
I've generally felt that it's the "right way" to run it out a directory that is a single version exported but I can't find any compelling arguments for either way of doing it.
Any insights would be useful.
There is nothing wrong with it. There are many deployment scripts that work that way and I think it is even a very good idea.
It's also a good idea to use tags to check out the correct version from the repository, or maybe a release branch.
精彩评论