6. Get Started
$ echo `capifony` >> {YOUR_SYMFONY_PROJECT_ROOT}/Gemfile
$ bundle install -j6’
…
Installing capifony 2.6.0
Your bundle is complete!
It was installed into ./vendor/bundle
!
$ bundle exec capifony {YOUR_SYMFONY_PROJECT_ROOT}
[add] writing './Capfile'
[add] writing './app/config/deploy.rb'
[done] symfony 2 project capifonied!
7. Get Started
# Set your specification (hosts, document root, etc..)
$ ed app/config/deploy.rb
!
# Prepare
$ bundle exec cap deploy:setup
!
# Deploy
$ bundle exec cap deploy
!
# Rollback
$ bundle exec cap deploy:rollback
8. Advanced
❖ capistrano-confirm!
❖ Confirm before deploy (& define tasks)!
!
❖ capistrano/ext/multistage (included in Capistrano)!
❖ https://github.com/capistrano/capistrano/wiki/
2.x-Multistage-Extension!
❖ Easy way to use a different deployment strategy
9. Be carefully
❖Fllow related libraries!
❖BC Break release!
❖e.g) composer’s `—no-dev` option,
# app/config/deploy.rb
set :comopser_verion, ‘1.0.0-alpha8’