mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
Add tip in multiple languages
This commit is contained in:
@@ -71,6 +71,11 @@ cd frankenphp-main/caddy/frankenphp
|
||||
CGO_CFLAGS=$(php-config --includes) CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" go build
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> 要成功编译,必须安装 brotli 和 watcher 依赖项。
|
||||
> 否则,如果不需要它们,请确保添加 `nobrotli,nowatcher` 标记。
|
||||
|
||||
### 使用 xcaddy
|
||||
|
||||
你可以使用 [xcaddy](https://github.com/caddyserver/xcaddy) 来编译 [自定义 Caddy 模块](https://caddyserver.com/docs/modules/) 的 FrankenPHP:
|
||||
|
||||
@@ -81,6 +81,11 @@ cd frankenphp-main/caddy/frankenphp
|
||||
CGO_CFLAGS=$(php-config --includes) CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" go build -tags=nobadger,nomysql,nopgx
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> The brotli and watcher dependencies need to be installed for compilation to succeed
|
||||
> Otherwise make sure to add the `nobrotli,nowatcher` tags if you do not need them.
|
||||
|
||||
### Using xcaddy
|
||||
|
||||
Alternatively, use [xcaddy](https://github.com/caddyserver/xcaddy) to compile FrankenPHP with [custom Caddy modules](https://caddyserver.com/docs/modules/):
|
||||
@@ -107,6 +112,3 @@ xcaddy build \
|
||||
> To do so, change the `XCADDY_GO_BUILD_FLAGS` environment variable to something like
|
||||
> `XCADDY_GO_BUILD_FLAGS=$'-ldflags "-w -s -extldflags \'-Wl,-z,stack-size=0x80000\'"'`
|
||||
> (change the stack size value according to your app needs).
|
||||
>
|
||||
> The brotli and watcher dependencies need to be installed for compilation to succeed
|
||||
> Otherwise make sure to add the `nobrotli,nowatcher` tags if you do not need them.
|
||||
|
||||
@@ -81,6 +81,11 @@ cd frankenphp-main/caddy/frankenphp
|
||||
CGO_CFLAGS=$(php-config --includes) CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" go build -tags=nobadger,nomysql,nopgx
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> Les dépendances brotli et watcher doivent être installées pour que la compilation réussisse.
|
||||
> Sinon, assurez-vous d'ajouter les balises `nobrotli,nowatcher` si vous n'en avez pas besoin.
|
||||
|
||||
### Utiliser xcaddy
|
||||
|
||||
Alternativement, vous pouvez utiliser [xcaddy](https://github.com/caddyserver/xcaddy) pour compiler FrankenPHP avec [des modules Caddy additionnels](https://caddyserver.com/docs/modules/) :
|
||||
|
||||
@@ -81,6 +81,11 @@ cd frankenphp-main/caddy/frankenphp
|
||||
CGO_CFLAGS=$(php-config --includes) CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" go build -tags=nobadger,nomysql,nopgx
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> Для успешной компиляции необходимо установить зависимости brotli и watcher.
|
||||
> В противном случае убедитесь, что добавили теги `nobrotli,nowatcher`, если они вам не нужны.
|
||||
|
||||
### Использование xcaddy
|
||||
|
||||
Альтернативно, используйте [xcaddy](https://github.com/caddyserver/xcaddy) для компиляции FrankenPHP с [пользовательскими модулями Caddy](https://caddyserver.com/docs/modules/):
|
||||
|
||||
@@ -73,6 +73,11 @@ cd frankenphp-main/caddy/frankenphp
|
||||
CGO_CFLAGS=$(php-config --includes) CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" go build
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> Derlemenin başarılı olması için brotli ve watcher bağımlılıklarının kurulması gerekir.
|
||||
> Aksi takdirde, bunlara ihtiyacınız yoksa `nobrotli,nowatcher` etiketlerini eklediğinizden emin olun.
|
||||
|
||||
### Xcaddy kullanımı
|
||||
|
||||
Alternatif olarak, FrankenPHP'yi [özel Caddy modülleri](https://caddyserver.com/docs/modules/) ile derlemek için [xcaddy](https://github.com/caddyserver/xcaddy) kullanın:
|
||||
|
||||
Reference in New Issue
Block a user