baopham/env-checker
Composer 安装命令:
composer require baopham/env-checker
包简介
Artisan command to check if all required variables are configured in .env
README 文档
README
Artisan command to check if all required variables are configured in .env by checking the .env.example
Usage:
- Run
$ composer require baopham/env-checker
- Register in your
config/app.php:
'providers' => [ ... BaoPham\EnvChecker\EnvCheckerServiceProvider::class, ... ];
-
Update your
.env.exampleto indicate all required variables -
Run the command
$ php artisan env:check
Envoy Usage Example
Include this in your 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
Requirements:
Laravel 5.1
License:
MIT
Author:
Bao Pham
统计信息
- 总下载量: 112
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-03