Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
2014/04/19 @_nishigori
Symfony Deployment
with capifony
$ whoami
❖ @_nishigori!
❖ https://github.com/
nishigori!
❖ capifony contributor
http://symfony.com
Symfony is a PHP
framework for web
projects.
http://capifony.org
Deploying symfony and
Symfony2 Applications
with Capistrano
How’s Capifony sound?
❖ Symfony 1.4+ OR Symfony2!
❖ Supports related libraries !
❖ Doctrine!
❖ Propel!
❖ Composer!
❖ Tests...
Get Started
$ echo `capifony` >> {YOUR_SYMFONY_PROJECT_ROOT}/Gemfile
$ bundle install -j6’
…
Installing capifony 2.6.0
You...
Get Started
# Set your specification (hosts, document root, etc..)
$ ed app/config/deploy.rb
!
# Prepare
$ bundle exec cap...
Advanced
❖ capistrano-confirm!
❖ Confirm before deploy (& define tasks)!
!
❖ capistrano/ext/multistage (included in Capistran...
Be carefully
❖Fllow related libraries!
❖BC Break release!
❖e.g) composer’s `—no-dev` option,
# app/config/deploy.rb
set :c...
http://martinfowler.com/delivery.html
CONTINUOUS
DELIVERY
Reliable Software Releases!
through !
! Build,!
! Test,!
! and!
...
Testing - Spec
❖ capistrano-spec!
❖ https://github.com/technicalpickles/capistrano-spec!
❖ capifony is using capistrano-sp...
Testing - Integration
“Development environments made easy ”
You can deploy using vagrant instance.
so easily run, and quic...
–Martin Fowler
“Automated CI and Go”
Testing - Integration
CI Server
e.g) test (green) -> deploy to stages
btw, http://jenkins-ci.org/ is made with Drupal
https://drupal.org/
Thanks :)
Upcoming SlideShare
Loading in …5
×

Symfony Deployment with Capifony #symfony_ja

3,697 views

Published on

It's presented at the symfony meetup #9.
About deploymenting to Symfony application, using Capifony.

http://symfony.doorkeeper.jp/events/9791

Published in: Engineering, Technology
  • Be the first to comment

Symfony Deployment with Capifony #symfony_ja

  1. 1. 2014/04/19 @_nishigori Symfony Deployment with capifony
  2. 2. $ whoami ❖ @_nishigori! ❖ https://github.com/ nishigori! ❖ capifony contributor
  3. 3. http://symfony.com Symfony is a PHP framework for web projects.
  4. 4. http://capifony.org Deploying symfony and Symfony2 Applications with Capistrano
  5. 5. How’s Capifony sound? ❖ Symfony 1.4+ OR Symfony2! ❖ Supports related libraries ! ❖ Doctrine! ❖ Propel! ❖ Composer! ❖ Tests covered! ❖ Inner DSL (Capistrano way)
  6. 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. 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. 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. 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’
  10. 10. http://martinfowler.com/delivery.html CONTINUOUS DELIVERY Reliable Software Releases! through ! ! Build,! ! Test,! ! and! ! Deployment Automation
  11. 11. Testing - Spec ❖ capistrano-spec! ❖ https://github.com/technicalpickles/capistrano-spec! ❖ capifony is using capistrano-spec ! {CAPYFONY_ROOT}/spec ├── capifony_symfony2_doctrine_spec.rb ├── capifony_symfony2_propel_spec.rb ├── capifony_symfony2_shared_spec.rb ├── capifony_symfony2_spec.rb ├── capifony_symfony2_symfony_spec.rb └── spec_helper.rb
  12. 12. Testing - Integration “Development environments made easy ” You can deploy using vagrant instance. so easily run, and quickly :P
  13. 13. –Martin Fowler “Automated CI and Go”
  14. 14. Testing - Integration CI Server e.g) test (green) -> deploy to stages
  15. 15. btw, http://jenkins-ci.org/ is made with Drupal https://drupal.org/
  16. 16. Thanks :)

×