Answer the question
In order to leave comments, you need to log in
How to properly publish a project from SVN?
There is a project on SVN, there is a web server (on the same server, but it is better not to be attached to this). On a post-commit trigger, the project is published to the web server.
While I did it through svn update, the cons are ".svn" directories everywhere. In general, this is not a problem for a test server, and it can be disabled in .htaccess, but it still turns out ugly.
They suggested the svn export option, but in this case all project files will be overwritten with each commit, which is also not very correct (especially with a large number of developers and frequent commits).
Actually, the question is: maybe there is a more reasonable way to publish the project? Ideally, you would get something like a file-by-file diff: replace this, this and this file, delete this, this and this. Then you can also bind to an external FTP server without fully downloading the project there every time.
Answer the question
In order to leave comments, you need to log in
Just recently there was a dispute on this topic, we considered the following options:
1. SVN up - fast, convenient, reliable (if you configure access to .svn directories correctly) - I personally, with all my hands "for" - have been using this for more than a year method on "combat" servers
2. SVN Export - in principle, nothing complicated, but there is one "BUT", everything is really overwritten, including what is not needed, as for me - it is not very convenient (changing configs, .htaccess etc.), there is also the problem of forgetting something - we are all people and no one is immune from mechanical errors.
3. Use something like Bamboo (it’s planted), I haven’t looked at it myself, but they say that the thing is flexible and can be configured to raise the svn and other mechanics, all the same configs, updates, etc. etc.
+1 for svn up. Set up access to the .svn folders and rejoice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question