国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

打包后運行會報錯,排查發(fā)現(xiàn)是打包沒有把插件包含進去

songshu

使用命令php webman phar:pack 打包,生成了 webman.phar。
運行后報錯:

但是實際上項目是安裝了這個插件的:

看了一下確實沒有把這個插件打包進去:

感覺這個打包命令需要微調(diào)一下

1078 3 0
3個回答

walkor 打賞

先不打包運行看下是否有報錯。
發(fā)下config/plugin/webman/console/app.php配置

  • songshu 2023-11-29

    不打包是可以正常運行的,配置放下面了

songshu
<?php
return [
    /** 打包命令: php -d phar.readonly=0 ./webman phar:pack */
    /** 然后開啟這個enable 放開下面的注釋 */
    'enable'            => true,

    'phar_file_output_dir'    => BASE_PATH . DIRECTORY_SEPARATOR . 'build',

    'phar_filename'     => 'webman.phar',

    'signature_algorithm'=> Phar::SHA256, //set the signature algorithm for a phar and apply it. The signature algorithm must be one of Phar::MD5, Phar::SHA1, Phar::SHA256, Phar::SHA512, or Phar::OPENSSL.

    'private_key_file'  => '', // The file path for certificate or OpenSSL private key file.

    'exclude_pattern'   => '#^(?!.*(config/plugin/webman/console/app.php|webman/console/src/Commands/(PharPackCommand.php|ReloadCommand.php)|LICENSE|composer.json|.github|.idea|doc|docs|.git|.setting|runtime|test|test_old|tests|Tests|vendor-bin|.md))(.*)$#',

    'exclude_files'     => [
        '.env', 'LICENSE', 'composer.json', 'composer.lock','start.php'
    ]
];
  • 暫無評論
songshu

感覺是配置的問題,把配置修改后就正常了

<?php
return [
    /** 打包命令: php -d phar.readonly=0 ./webman phar:pack */
    /** 然后開啟這個enable 放開下面的注釋 */
    'enable'            => true,

    'phar_file_output_dir'    => BASE_PATH . DIRECTORY_SEPARATOR . 'build',

    'phar_filename'     => 'webman.phar',

    'signature_algorithm'=> Phar::SHA256, //set the signature algorithm for a phar and apply it. The signature algorithm must be one of Phar::MD5, Phar::SHA1, Phar::SHA256, Phar::SHA512, or Phar::OPENSSL.

    'private_key_file'  => '', // The file path for certificate or OpenSSL private key file.

    //'exclude_pattern'   => '#^(?!.*(config/plugin/webman/console/app.php|webman/console/src/Commands/(PharPackCommand.php|ReloadCommand.php)|LICENSE|composer.json|.github|.idea|doc|docs|.git|.setting|runtime|test|test_old|tests|Tests|vendor-bin|.md))(.*)$#',
    'exclude_pattern'   => '#^(?!.*(composer.json|/.github/|/.idea/|/.git/|/.setting/|/runtime/|/vendor-bin/|/build/|vendor/webman/admin))(.*)$#',
    'exclude_files'     => [
        '.env', 'LICENSE', 'composer.json', 'composer.lock','start.php'
    ]
];
  • 暫無評論
年代過于久遠,無法發(fā)表回答
??