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.

5th Symfony2 Study Meeting Shigeoka' LT 20111204

6,082 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

5th Symfony2 Study Meeting Shigeoka' LT 20111204

  1. 1. PHP Fog + Symfony2 2011/12/04 5 Symfony2 bakorer
  2. 2. Symfony• Symfony1.4•• Symfony2
  3. 3. LT
  4. 4. • VPS 2••
  5. 5. Heroku
  6. 6. Heroku PHP Heroku
  7. 7. Heroku
  8. 8. Symfony2PHP Fog
  9. 9. PHP Fog + Symfony2
  10. 10. PHP Fog
  11. 11. Symfony Custom App
  12. 12. MySQL
  13. 13. SSH
  14. 14. • $ git clone git@git01.phpfog.com:symfony2.phpfogapp.com• $ cd symfony2.phpfogapp.com• $ git rm index.php• $ git remote add phpfog git@git01.phpfog.com:symfony2.phpfogapp.com• Symfony2• $ vim web/app_dev.php• $ vim web/config.php• $ git add .• $ git commit -m symfony2 init• $ git push phpfog master
  15. 15. • date.timezoneini_set(date.timezone, Asia/Tokyo); • Rails app/controllers/application_controller.rb • Symfony2 • →( ) app/AppKernel.php• PHP• short_open_tag•
  16. 16. • $ vim web/clean_prod_cache.php<?phpsystem(php ../app/console env=prod cache:clear);system(php ../app/console env=prod cache:warm);?>• $ git add .• $ git commit -m create clean_prod_cache.php• $ git push phpfog master
  17. 17. http://symfony2.phpfogapp.com/web/app_dev.php/ → http://symfony2.phpfogapp.com/app_dev.php/ web
  18. 18. cache, logs
  19. 19. • $ vim app/config/security.yml security: encoders: SymfonyComponentSecurityCoreUserUser: plaintext providers: in_memory: users: admin: { password: adminpass, roles: [ ROLE_ADMIN ] } firewalls: secured_area: pattern: ^/ http_basic: realm: "Secured Area" access_control: - { path: ^/, roles: ROLE_ADMIN }
  20. 20. • Symfony2 PHP Fog ?• Assetic• • http://docs.phpfog.com/index.php/features/article/supported_frameworks • http://www.developly.com/using-symfony2-on-phpfog-now-right-now
  21. 21. Thank you!

×