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

phar打包出現問題

brookeov

問題描述

phar打包報錯

程序代碼

/usr/local/php_static/php8.1/php webman build:bin 8.1.15

報錯信息

Phar::buildFromDirectory(): Read of 8192 bytes failed with errno=21 Is a directory

截圖報錯信息里報錯文件相關代碼

截圖

/usr/local/php_static/php8.1/php webman build:bin 8.1.15

操作系統(tǒng)及workerman/webman等框架組件具體版本

這里寫具體的系統(tǒng)環(huán)境相關信息
Webman-framework v1.5.1
webman/console v1.2.24

append

  • config/plugin/webman/console/app.php 配置
<?php
return [
    'enable' => true,

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

    'phar_filename' => 'webman.phar',

    'bin_filename' => 'webman.bin',

    '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'   => '#^(?!.*(composer.json|/.github/|/.idea/|/.git/|/.setting/|/.idea/|/runtime/|/vendor-bin/|/build/|vendor/webman/admin))(.*)$#',

    'exclude_files'     => [
        '.env', 'LICENSE', 'composer.json', 'composer.lock', 'start.php', 'webman.phar', 'webman.bin', '.DS_Store', '.gitignore'
    ]
];
1715 1 0
1個回答

walkor 打賞

發(fā)下config/plugin/webman/console/app.php 配置

  • brookeov 2023-02-24

    老大 我修改了一下

  • walkor 2023-02-24

    把配置里 exclude_pattern 注釋掉試下

  • brookeov 2023-02-24

    注釋也不行

  • walkor 2023-02-24

    這邊沒環(huán)境,不好確認什么問題。 可能和你本地環(huán)境有關,比如用了共享磁盤,具體得自己定位了

  • brookeov 2023-02-24

    老大 我這邊找到原因了 我這邊有public/storage 軟鏈 刪了就好了

  • brookeov 2023-02-24

    但是沒有軟鏈 storage又訪問不了 老大有辦法嗎

  • brookeov 2023-02-24

    用修改public_path方式試下?

年代過于久遠,無法發(fā)表回答
??