Prechádzať zdrojové kódy

export:tag export:pali.text

visuddhinanda 3 rokov pred
rodič
commit
6b1fd6761d
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      app/Console/Commands/ExportOffline.php

+ 5 - 0
app/Console/Commands/ExportOffline.php

@@ -39,12 +39,17 @@ class ExportOffline extends Command
     {
     {
         //导出channel
         //导出channel
         $this->call('export:channel');
         $this->call('export:channel');
+        //导出channel
+        $this->call('export:tag');
+        $this->call('export:tag.map');
+        $this->call('export:pali.text');
         //导出章节索引
         //导出章节索引
         $this->call('export:chapter.index');
         $this->call('export:chapter.index');
         //导出译文
         //导出译文
         $this->call('export:sentence');
         $this->call('export:sentence');
         //导出原文
         //导出原文
         $this->call('export:sentence',['channel'=>'28f2e33a-794f-11ed-9481-1395f6ece2de']);
         $this->call('export:sentence',['channel'=>'28f2e33a-794f-11ed-9481-1395f6ece2de']);
+        shell_exec("XZ_OPT=-9 tar jcvf ".storage_path("app/public/export/offline.tar.xz")." ".storage_path("app/public/export/offline"));
         return 0;
         return 0;
     }
     }
 }
 }