开发者

SVN Symfony Best Practice

So I am starting a Symfony project that I will be developing on my local machine and pushing changes everyday to the live server. I wanna use SVN as the version control but Im not sure what the best way to set it up is.

Do i make the actual html directory on the server be the repo so that when I check things in it goes live? Do I make it a separate directory and move things over by hand?

Any help would be 开发者_运维知识库appreciated!

Thanks!


Firstly, SVN is absolutely fine to use as version control - use it for your Symfony project in the same way you would any other project. The one thing to remember is that you shouldn't check out your project on your live/production server as you will end up with .svn directories visible to the outside world. Information about putting your Symfony project into a local Subversion server is available in the Symfony docs.

To combat the problem of having .svn directories on your live server, use Symfony's project:deploy command, detailed in the Symfony docs. This should be run from a clean checkout, eg on a deployment server, or somewhere else locally. The deploy command will copy the necessary files to the live server of your choice, excluding any version control files etc. This ensures that only what is needed is on your live server.


Check the first chapter of the Jobeet tutorial. There is a whole section about Subversion.

Day 1: Starting up the Project

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜