Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

Symfony Deployment with Capifony #symfony_ja

Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Prochain SlideShare
What's new in Symfony3
What's new in Symfony3
Chargement dans…3
×

Consultez-les par la suite

1 sur 16 Publicité

Plus De Contenu Connexe

Similaire à Symfony Deployment with Capifony #symfony_ja (20)

Plus récents (20)

Publicité

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 :)

×