From 6284b567183eaefd1792f4d7f74160c8148ca4af Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 2 Jun 2014 16:14:58 +0300 Subject: [PATCH] cli rebuild.php --- application/Espo/Core/Application.php | 9 +++++++++ rebuild.php | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 rebuild.php diff --git a/application/Espo/Core/Application.php b/application/Espo/Core/Application.php index a444c1e72e..9de34e209a 100644 --- a/application/Espo/Core/Application.php +++ b/application/Espo/Core/Application.php @@ -128,6 +128,15 @@ class Application $cronManager = new \Espo\Core\CronManager($this->container); $cronManager->run(); } + + public function runRebuild() + { + $auth = $this->getAuth(); + $auth->useNoAuth(true); + + $dataManager = $this->getContainer()->get('dataManager'); + $dataManager->rebuild(); + } public function isInstalled() { diff --git a/rebuild.php b/rebuild.php new file mode 100644 index 0000000000..2cc4378d57 --- /dev/null +++ b/rebuild.php @@ -0,0 +1,13 @@ +runRebuild(); +