定制 agiuliano/capifony-recipes 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

agiuliano/capifony-recipes

Composer 安装命令:

composer require agiuliano/capifony-recipes

包简介

Capifony recipes

README 文档

README

#Capifony Recipes

Add some shortcut to your Capifony project

##Installation Add the following to your composer.json

"agiuliano/capifony-recipes": "dev-master"

##Usage After you Capified your project, add the following to your Capfile if you want to add one recipe at time

load 'vendor/agiuliano/capifony-recipes/recipes/ask_branch.rb'

otherwise, if you want to add all the recipes, you can add the following

Dir["vendor/agiuliano/capifony-recipes/recipes/*.rb"].each {|file| load file }

#Recipes The following section describes the recipes in the package and how to use them

##Git branch choice When you deploy your application, Capifony just ask you which branch you want to deploy.

By default, it propose to you the current branch you are on.

##Parameters When you setup your project, it'd be cool if Capifony automagically upload a specified parameters.yml on your server.

With this recipe you can tell Capifony which is you parameter file and when to upload it. In particular, in deploy.rb or prod/staging/whatever.rb file you can write

set :parameters_file, "parameters.yml"
after 'deploy:setup', 'upload_parameters'

parameters_file tells which name your parameters file has whereas after 'deploy:setup', 'upload_parameters' explains when the task has to be performed.

You can also add a custom folder:

set :parameters_dir, "app/config"

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Ruby

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固