bobdenotter/chmodinator

📦 在项目中更改需要可写权限的文件权限。

安装: 90

依赖: 0

建议者: 0

安全: 0

星星: 0

观察者: 1

分支: 0

开放问题: 0

类型:bolt-extension

1.0.1 2021-06-17 13:30 UTC

This package is auto-updated.

Last update: 2024-09-17 20:33:03 UTC


README

A small Bolt 4/5 extension to chmod files that need to be writabable for both the shell-user, as well as the webserver. Primarily for shared hosting, where you have less control over these matters.

安装

composer require bobdenotter/chmodinator

然后,编辑 Bolt 的全局 config.yaml 文件,明确设置 canonical:。这是必要的,因为扩展需要能够从命令行获取后端链接。

您还应该审查 config/extensions/bobdenotter-chmodinator.yaml 中的设置,以确保您已设置一个新且唯一的键。

要测试其是否正常工作,请运行 bin/console chmodinator:do。之后,按照您的方式运行它。一个常见的用例是在部署前后运行它,以确保站点在部署后工作正常,同时也允许命令行用户清理旧部署的文件。

示例输出

Example output

或者,您可以通过调用 URL https://example.org/chmodinator/abc123456def 作为基于网络的请求来运行它。显然,用您的域名和密钥(abc123456def)替换。

运行 PHPStan 和 Easy Codings Standard

首先,确保依赖已安装

COMPOSER_MEMORY_LIMIT=-1 composer update

然后运行 ECS

vendor/bin/ecs check src