baopham / env-checker
Artisan command to check if all required variables are configured in .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-11-24 03:52:43 UTC
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.example
to 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