Merge pull request #312 from pdvyas/hotfix

[fix] move version validation to build and serve
This commit is contained in:
Anand Doshi 2013-11-28 04:40:26 -08:00
commit e251d75b61
3 changed files with 2 additions and 1 deletions

View file

@ -635,4 +635,3 @@ def validate_versions():
if not spec.match(framework_version):
raise Exception, "Framework version out of sync"
validate_versions()

View file

@ -61,6 +61,7 @@ application = StaticDataMiddleware(application, {
def serve(port=8000, profile=False):
webnotes.validate_versions()
global application
from werkzeug.serving import run_simple
if profile:

View file

@ -15,6 +15,7 @@ from cssmin import cssmin
def bundle(no_compress, cms_make=True):
"""concat / minify js files"""
# build js files
webnotes.validate_versions()
check_public()
check_lang()
bundle = Bundle()