0.0
No commit activity in last 3 years
No release in over 3 years
Capistrano extension
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.2.0
~> 3.3.0
~> 1.0.0
 Project Readme

ONGR Deploy gem for Symfony projects

This is capistrano extension gem which adds additional features especially for Symfony projects like: deployment with rsync, missing parameters addition from parameters.yml.dist, automatical IP's resolving from AWS auto-scale groups.

Setup

For the setup we recommend to create a Gemfile in your project root. Check basic example below:

#Gemfile content
source 'http://rubygems.org'
gem 'ongr_deploy'

Once you have this file you can run bundle install to install all dependencies.

Make sure you have ruby v2+, and bundle gem installed.

Next, generate all necessary files for your deploy, run:

bundle exec ongr install

It will generate: Capfile, app/deploy.rb, app/deploy/stage.rb, app/tasks

Configuration

After installation check app/deploy.rb and app/deploy/stage.rb. There are left comments where you need to change values according your project. app/deploy/stage.rb is your first environment. Add additional files with env name if necessary.

Deploy

Deploy is 2 step process. Before release all files has to be packed and then deployed.

To pack build run:

bundle exec cap stage deploy:pack

stage is the environment name.

And then deploy:

bundle exec cap stage deploy