[minor] compileall after migrate, might solve timeouts on VM (#4197)
This commit is contained in:
parent
85460b8413
commit
fbf8da1d37
5 changed files with 8 additions and 10 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from __future__ import unicode_literals, absolute_import, print_function
|
||||
import click
|
||||
import hashlib, os, sys
|
||||
import hashlib, os, sys, compileall
|
||||
import frappe
|
||||
from frappe import _
|
||||
from _mysql_exceptions import ProgrammingError
|
||||
|
|
@ -218,6 +218,8 @@ def migrate(context, rebuild_website=False):
|
|||
finally:
|
||||
frappe.destroy()
|
||||
|
||||
compileall.compile_dir('../apps', quiet=1)
|
||||
|
||||
@click.command('run-patch')
|
||||
@click.argument('module')
|
||||
@pass_context
|
||||
|
|
|
|||
|
|
@ -33,7 +33,10 @@ def get_meta(doctype, cached=True):
|
|||
lambda: Meta(doctype))
|
||||
return frappe.local.meta_cache[doctype]
|
||||
else:
|
||||
return Meta(doctype)
|
||||
return load_meta(doctype)
|
||||
|
||||
def load_meta(doctype):
|
||||
return Meta(doctype)
|
||||
|
||||
def get_table_columns(doctype):
|
||||
return frappe.cache().hget("table_columns", doctype,
|
||||
|
|
|
|||
|
|
@ -1138,9 +1138,6 @@ input[type="checkbox"]:checked:before {
|
|||
.slides-wrapper .footer .btn:not(:last-child) {
|
||||
margin-right: 3px;
|
||||
}
|
||||
.slides-wrapper .footer a.btn.make-btn {
|
||||
margin-right: 7px;
|
||||
}
|
||||
.slides-wrapper .footer a.make-btn.disabled {
|
||||
background-color: #b1bdca;
|
||||
color: #fff;
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ frappe.setup.UserProgressDialog = class UserProgressDialog {
|
|||
$footer.find('.text-right')
|
||||
.prepend($(`<a class="done-btn btn btn-default btn-sm">
|
||||
${__("Mark as Done")}</a>`))
|
||||
.prepend($(`<a class="make-btn btn btn-primary btn-sm primary action">
|
||||
.append($(`<a class="make-btn btn btn-primary btn-sm primary action">
|
||||
${__("Create")}</a>`));
|
||||
},
|
||||
on_update: (completed, total) => {
|
||||
|
|
|
|||
|
|
@ -1088,10 +1088,6 @@ input[type="checkbox"] {
|
|||
margin-right: 3px;
|
||||
}
|
||||
|
||||
a.btn.make-btn {
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
a.make-btn.disabled {
|
||||
background-color: #b1bdca;
|
||||
color: #fff;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue