What does REBUILD.PHP do with files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jakub
    Junior Member
    • Mar 2021
    • 27

    What does REBUILD.PHP do with files?

    Hello, I would like to setup CI in GITLAB and there are a lot of changed files which I didn't update by myself. What do the rebuild.php? Is there some account ID, permitions sets? Or do it write to files as well?
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    I'm not a programmer so I don't know what it do exactly, you can probably start digging from reading the file here:

    https://github.com/espocrm/espocrm/b...er/rebuild.php

    It look like it run a couple of other file:
    include "bootstrap.php";
    use Espo\Core\{
    Application,
    ApplicationRunners\Rebuild,
    Personally, as a "GUI" only user, for me rebuild (1) delete all cache file, (2) re-check all custom folder/file that was created and (3) create a new index with these file to be use in EspoCRM.

    Comment

    • telecastg
      Active Community Member
      • Jun 2018
      • 907

      #3
      I think this can help answering your questions https://github.com/espocrm/espocrm/b...anager.php#L98

      Comment


      • esforim
        esforim commented
        Editing a comment
        And a copy/paste in case someone search on the forum:

        public function rebuild(?array $entityList = null): void
        {
        $this->clearCache();

        $this->disableHooks();

        $this->populateConfigParameters();

        $this->rebuildMetadata();

        $this->rebuildDatabase($entityList);

        $this->rebuildScheduledJobs();

        $this->enableHooks();
        }
    • Jakub
      Junior Member
      • Mar 2021
      • 27

      #4
      Thank you, I am not developer, so when I dig in $this->rebuildMetadata(); I do not know if there is also some file write functtions

      Comment

      Working...