Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding a few additional, and I think useful steps to the update script.

  • Loading branch information...
commit 8fea7b2b5c8cc7bdfb4afd673b5160565500002d 1 parent 7bf890e
@rossbruniges rossbruniges authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/update_site.py
View
5 bin/update_site.py
@@ -36,6 +36,7 @@
# LOCALE_REPO_URL = ''
GIT_PULL = "git pull -q origin %(branch)s"
+GIT_SYNC = "git submodule sync"
GIT_SUBMODULE = "git submodule update --init --recursive"
#SVN_CO = "svn checkout --force %(url)s locale"
#SVN_UP = "svn update"
@@ -57,6 +58,7 @@ def update_site(env, debug):
commands = [
(CHDIR, here),
(EXEC, GIT_PULL % project_branch),
+ (EXEC, GIT_SYNC % project_branch),
(EXEC, GIT_SUBMODULE),
]
@@ -87,8 +89,9 @@ def update_site(env, debug):
#(EXEC, GIT_PULL % vendor_branch),
#(CHDIR, os.path.join(here)),
#(EXEC, GIT_SUBMODULE),
- (EXEC, 'python2.6 manage.py migrate'),
(EXEC, 'python2.6 manage.py collectstatic --noinput'),
+ (EXEC, 'python2.6 manage.py syncdb'),
+ (EXEC, 'python2.6 manage.py migrate'),
(EXEC, '/etc/init.d/httpd restart'),
#(EXEC, 'python2.6 manage.py compress_assets'),
]
Please sign in to comment.
Something went wrong with that request. Please try again.