baopham / env-checker
Artisan命令,用于检查.env文件中是否已配置所有所需的变量
dev-master
2015-09-13 01:25 UTC
Requires
- illuminate/console: 5.1.*
- illuminate/support: 5.1.*
Requires (Dev)
- phpunit/phpunit: ^5.0@dev
This package is auto-updated.
Last update: 2024-09-24 03:28:41 UTC
README
Artisan命令通过检查.env.example文件来检查.env文件中是否已配置所有所需的变量
用法
- 运行
$ composer require baopham/env-checker
- 在您的
config/app.php
中注册
'providers' => [ ... BaoPham\EnvChecker\EnvCheckerServiceProvider::class, ... ];
-
更新您的
.env.example
以指示所有所需的变量 -
运行命令
$ php artisan env:check
Envoy使用示例
在您的Envoy.blade.php
中包含此内容
@task('deploy_dev', ['on' => 'dev'])
cd /home/forge/app
git fetch
git checkout origin/dev -- config/envchecker.php
php artisan env:check
// If the check above fails, the script stops here.
// else, it continues (you can continue to pull the latest code and deploy)
@endtask
要求
Laravel 5.1
许可证
MIT
作者
Pham Bao