Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@rossbruniges
  • git submodule sync - to work around moving the submodule remotes (like we've just done with django-taggit)
  • ./manage.py sycndb - to pick up and register new apps before south can migrate them
@ryanpitts ryanpitts merged commit a2e0794 into mozilla:development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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'),
]
Something went wrong with that request. Please try again.