Skip to content

Commit e08e7d6

Browse files
authored
Update bin.md
1 parent 38ca5c8 commit e08e7d6

File tree

1 file changed

+3
-10
lines changed
  • resource/doc/zh-cn/others

1 file changed

+3
-10
lines changed

resource/doc/zh-cn/others/bin.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ webman支持将项目打包成一个二进制文件,这使得webman无需php
99
## 安装命令行工具
1010
`composer require webman/console ^1.2.24`
1111

12-
## 配置设置
13-
打开 `config/plugin/webman/console/app.php` 文件,设置
14-
```php
15-
'exclude_pattern' => '#^(?!.*(composer.json|/.github/|/.idea/|/.git/|/.setting/|/runtime/|/vendor-bin/|/build/|vendor/webman/admin))(.*)$#'
16-
```
17-
用于打包时排除一些无用的目录及文件,避免打包体积过大
18-
1912
## 打包
2013
运行命令
2114
```
@@ -37,14 +30,14 @@ php webman build:bin 8.1
3730
* 将php8.x.micro.sfx和phar文件拼接为一个二进制文件
3831

3932
## 注意事项
40-
* 本地php版本>=7.2都可以执行打包命令
41-
* 但是只能打包成php8的二进制文件
42-
* 强烈建议本地php版本和打包版本一致,也就是如果本地是php8.0,打包也用php8.0,避免出现兼容问题
33+
* 本地php版本>=7.2都可以执行打包命令,但是只能打包成php8的二进制文件
34+
* 强烈建议本地php版本和打包版本一致,例如本地是php8.1,打包也用php8.1,避免出现兼容问题
4335
* 打包会下载php8的源码,但是并不会本地安装,不会影响本地php环境
4436
* webman.bin目前只支持在x86_64架构的linux系统运行,不支持在mac系统运行
4537
* 默认不打包env文件(`config/plugin/webman/console/app.php`中exclude_files控制),所以启动时env文件应该放置与webman.bin相同目录下
4638
* 运行过程中会在webman.bin所在目录生成runtime目录,用于存放日志文件
4739
* 目前webman.bin不会读取外部php.ini文件,如需要自定义php.ini,请在 `/config/plugin/webman/console/app.php` 文件custom_ini中设置
40+
* 有些文件不需要打包,可以设置`config/plugin/webman/console/app.php`排除掉,避免打包后的文件过大
4841

4942
## 单独下载静态PHP
5043
有时候你只是不想部署PHP环境,只需要一个PHP可执行文件,点击请点击这里下载[静态php下载](https://www.workerman.net/download)

0 commit comments

Comments
 (0)