Capifony recipes
Add some shortcut to your Capifony project, (*1)
Add the following to your composer.json, (*2)
"agiuliano/capifony-recipes": "dev-master"
After you Capified your project, add the following to your Capfile if you want to add one recipe at time, (*3)
load 'vendor/agiuliano/capifony-recipes/recipes/ask_branch.rb'
otherwise, if you want to add all the recipes, you can add the following, (*4)
Dir["vendor/agiuliano/capifony-recipes/recipes/*.rb"].each {|file| load file }
The following section describes the recipes in the package and how to use them, (*5)
When you deploy your application, Capifony just ask you which branch you want to deploy., (*6)
By default, it propose to you the current branch you are on., (*7)
When you setup your project, it'd be cool if Capifony automagically upload a specified parameters.yml on your server., (*8)
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, (*9)
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., (*10)
You can also add a custom folder:, (*11)
set :parameters_dir, "app/config"