S
S
Sergey Toy2011-06-03 09:32:25
Nginx
Sergey Toy, 2011-06-03 09:32:25

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

3 answer(s)
Z
zoc, 2011-06-03
@Toy

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

S
sergeyvolobuev, 2011-06-03
@sergeyvolobuev

subversion. Automatic project update using hooks - here is a detailed description of such a scheme.

V
Vsevolod, 2011-06-03
@sevka_fedoroff

You can just do an update on the crown. But there will be a slight delay between the commit and the actual appearance of the changes on the server. I hope this is not production for you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question