Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use python2.6 for update script, and added L10n compile step to script.

  • Loading branch information...
commit aba6cc37fc02f70f7b417beab41851fc187c10f6 1 parent 8bf571b
@fwenzel fwenzel authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 bin/update_site.py
View
10 bin/update_site.py 100755 → 100644
@@ -23,14 +23,15 @@
ENV_BRANCH = {
# 'environment': [PROJECT_BRANCH, VENDOR_BRANCH],
- 'dev': ['base', 'master'],
- 'stage': ['master', 'master'],
+ 'dev': ['base', 'master'],
+ 'stage': ['master', 'master'],
'prod': ['prod', 'master'],
}
GIT_PULL = "git pull -q origin %(branch)s"
GIT_SUBMODULE = "git submodule update --init"
SVN_UP = "svn update"
+COMPILE_PO = "./compile.sh"
EXEC = 'exec'
CHDIR = 'chdir'
@@ -54,6 +55,7 @@ def update_site(env, debug):
commands += [
(CHDIR, os.path.join(here, 'locale')),
(EXEC, SVN_UP),
+ (EXEC, COMPILE_PO),
(CHDIR, here),
]
elif os.path.exists(os.path.join(here, 'locale', '.git')):
@@ -68,8 +70,8 @@ def update_site(env, debug):
(EXEC, GIT_PULL % vendor_branch),
(EXEC, GIT_SUBMODULE),
(CHDIR, os.path.join(here)),
- (EXEC, 'python vendor/src/schematic/schematic migrations/'),
- (EXEC, 'python manage.py compress_assets'),
+ (EXEC, 'python2.6 vendor/src/schematic/schematic migrations/'),
+ (EXEC, 'python2.6 manage.py compress_assets'),
]
for cmd, cmd_args in commands:
Please sign in to comment.
Something went wrong with that request. Please try again.