Deploy with git

Currently, I have a bunch of git repos for the django site I'm looking for for deployment, repos take the form:

sn-static
sn-django
sn-templates
[etc]

Then I have a superreposition in which each of them is stored as submodules. As for deployment, I want to try to keep things simple enough, is this valid:

  • Clone a stable tag from superpositions and, therefore, have stable clones of each repo in one place.
  • Since the names are sn- *, I would look at a symbolic link to a more friendly structure, for example. ln -s /path/to/super-repos/sn-static /home/site/media/
  • Then my nginx web server (in the case of static content, at least) can just reference / home / site / media

Without a lot of technical knowledge, I’m not sure that symbolic binding will have any consequences in terms of speed or stability. I am also wondering if I can avoid this as a deployment method, instead of, say, using something like Capistrano (this has no experience yet).

+3
source share
2 answers

pip virtualenv, , pip git . , , . (. .)

, Django, staticfiles , .

+2

, (Git ). -, , , , .

git pull [tag]
-1

All Articles