8bitov/ lua-parameter-handler
1.0.0
2016-07-04 13:56 UTC
Requires
- php: >=5.5.0
Requires (Dev)
- phpunit/phpunit: ~5.4.6
This package is not auto-updated.
Last update: 2024-09-14 19:25:37 UTC
README
LUA脚本项目8bitgroup的参数检查脚本。检查目标文件nginx/parameters.conf中的参数是否与文件nginx/parameters.conf.dist中的参数匹配。目标:在部署时同步所有服务器的参数。
nginx/parameters.conf.dist文件应位于仓库中并包含最新数据。
在文件中指定默认参数。对于“秘密参数”,需要指定值为""(空字符串)。
nginx/parameters.conf文件应位于共享文件中,在所有服务器上,并包含自己环境的最新数据。
如果目标文件中找不到任何参数,将提供交互式模式来填写参数值。
安装
-
composer require 8bitov/lua-parameter-handler
-
在composer.json的extra部分中指定
"8bit-lua-parameters": { "file": "nginx/parameters.conf" }
-
在composer.json的post-install-cmd和post-update-cmd部分中指定
"Bitov8\LuaParameterHandler\ScriptHandler::buildParameters"