setono/deployer-dotenv 问题修复 & 功能扩展

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

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

setono/deployer-dotenv

最新稳定版本:v2.0.0-alpha.2

Composer 安装命令:

composer require setono/deployer-dotenv

包简介

Easily update your .env files when deploying

README 文档

README

Latest Version Software License Build Status

If you use Deployer as your deployment tool and .env files to handle environment variables (i.e., Symfony) this library is for you.

Are you still accessing your server to update environment variables manually after a deployment? We also did that, and that's the main reason why we built this library.

Now we have a very specific, but simple, strategy for updating the .env files during deployment:

  • We do not share the .env.local.php, .env.local files as is the default by Deployer. Instead, we have a .env.[stage].local and .env.local.php in each release folder.

  • When deploying, we copy the .env.[stage].local file from the previous release (if there was a previous release, else we create it).

  • If you’re deploying interactively (i.e., manually), you’re presented with a dialog asking if you want to update any environment variables.

  • Finally, we run composer symfony:dump-env [stage] to generate the .env.local.php file for the current release.

Installation

composer require setono/deployer-dotenv

Usage

In your deploy.php file require the recipe:

<?php

namespace Deployer;

require_once 'recipe/setono_dotenv.php';

// ...

This will automatically hook into the default flow of Deployer.

统计信息

  • 总下载量: 21.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固