baopham/env-checker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Run
$ composer require baopham/env-checker
  1. Register in your config/app.php:
'providers' => [
    ...
    BaoPham\EnvChecker\EnvCheckerServiceProvider::class,
    ...
];
  1. Update your .env.example to indicate all required variables

  2. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-03