Answer the question
In order to leave comments, you need to log in
Can nginx root directory be set to svn repository?
Is it possible to make it so that when you commit something in svn, the changes are available over the network through nginx?
Where does svn put the latest revision?
Answer the question
In order to leave comments, you need to log in
To do this, you can set up a hook so that after the commit, the current version is copied to the nginx root folder. In the folder with your repository there is a hooks folder, there you will need a post-commit file, enter the command to update the root folder in it.
Here is an example:
cd /site.root.folder && svn update
subversion. Automatic project update using hooks - here is a detailed description of such a scheme.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question