Deployment on Heroku

2,034 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,034
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • Beautiful nature\n
  • Beautiful churches (ortodox, russian) and mosks\n
  • Folk dances and songs\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Deployment on Heroku

    1. 1. Heroku deployment by Stoyan Zhekov
    2. 2. BULGARIA Bulgaria
    3. 3. http://en.wikipedia.org/wiki/ Music_of_Bulgaria
    4. 4. Deploy ?
    5. 5. Deploy ! “Install thesoftware into an operational environment”
    6. 6. Deploy• Where?
    7. 7. Deploy• Where?• Packaging
    8. 8. Deploy• Where?• Packaging• Updates
    9. 9. Deploy• Where?• Packaging• Updates• Scale
    10. 10. Where?Local
    11. 11. Where?Local vsRemote
    12. 12. Packaging RVM GEMSET +BUNDLER ( Gemfile )
    13. 13. Packagingrvm --create 1.9.2@myapp +gem install bundler --pre
    14. 14. Updates• Save old version
    15. 15. Updates• Save old version• Upload new version
    16. 16. Updates• Save old version• Upload new version• Restart app server
    17. 17. Let’s do it!web visitors counter
    18. 18. Local deployment• Where? localhost• Packaging .rvmrc + Gemfile• Updates git flow• Scale ?
    19. 19. Local deployment brew install git-flowgem install bundler --pre
    20. 20. curl get.pow.cx | sh
    21. 21. Local deployment• Where? localhost• Packaging .rvmrc + Gemfile• Updates git• Scale ?
    22. 22. Scalegem install foremanforeman start -c web=4
    23. 23. Local deployment• Where? localhost• Packaging .rvmrc + Gemfile• Updates git• Scale foreman
    24. 24. Remote deployment• Where? WHY? HOW?• Packaging .rvmrc + Gemfile• Updates git• Scale foreman
    25. 25. Remote deployment• Where? VPS? Capistrano?• Packaging .rvmrc + Gemfile• Updates git• Scale thin , ...
    26. 26. Too complicated
    27. 27. Remote deployment• Where? VPS? Capistrano?• Packaging .rvmrc + Gemfile• Updates git• Scale thin , ...
    28. 28. Remote deploymentgem install heroku
    29. 29. http://heroku.com/http://devcenter.heroku.com/
    30. 30. Heroku• Amazon EC2 ( SCALE )• PaaS ( EASY )• Pay per use ( FREE )
    31. 31. PaaS
    32. 32. Dynos
    33. 33. Dynos“Forget servers, instances, andVMs. Focus on processes.”
    34. 34. Dynos“A dyno is a single process of any type running on the Heroku platform.”
    35. 35. Stacks
    36. 36. heroku create --stack cedar
    37. 37. Add0ns
    38. 38. http://addons.heroku.com/
    39. 39. heroku addons:add mongohq:free
    40. 40. Remote deployment• Where? Heroku• Packaging .rvmrc + Gemfile• Updates git• Scale ?
    41. 41. Scale $0.05/hourhttp://www.heroku.com/pricing#0-0
    42. 42. Scale $0.05/hourhttp://www.heroku.com/pricing#0-0
    43. 43. Scale $0.05/hourhttp://www.heroku.com/pricing#0-0
    44. 44. Scale $0.05/hourhttp://www.heroku.com/pricing#0-0
    45. 45. Scale for free?
    46. 46. Scalegem install unicorn
    47. 47. http://MOGOK.jp/
    48. 48. MOGOK by IIJgem install mogok
    49. 49. Thank you!

    ×