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.

Deployment tales

39 views

Published on

Deployment tales

Published in: Software
  • Be the first to comment

  • Be the first to like this

Deployment tales

  1. 1. Deployment tales OLEKSANDR SIMONOV
  2. 2. About Me •Oleksandr Simonov •Businessman/Software Engineer/DevOps •13 years in IT •8 years with Ruby •Open Source contributor •Github: @simonoff
  3. 3. Shared Hosting Era Dedicated Server Era Cloud Era What is wrong in every Era? ?!
  4. 4. Shared Hosting Era Apache
  5. 5. Shared Hosting Era Apache PERL/CGI
  6. 6. Shared Hosting Era Apache PERL/CGI PHP
  7. 7. Shared Hosting Era Apache PERL/CGI PHP MySQL
  8. 8. Deployment Process 1. Edit File 2. Upload 3. Open browser 4.Say: F*CK 5. Close browser 6. GOTO 1
  9. 9. Dedicated Server Era Debian/Red Hat
  10. 10. Dedicated Server Era Debian/Red Hat sudo
  11. 11. Dedicated Server Era Debian/Red Hat sudo vim
  12. 12. Dedicated Server Era Debian/Red Hat sudo vim rm -rf /
  13. 13. Deployment Process tar cvzf suppa.tar.gz suppa scp suppa.tar.gz root@server.com:/ ssh root@server.com tar xvzf /suppa.tar.gz /var/www/
  14. 14. Cloud Era capistrano
  15. 15. Cloud Era capistrano vlad
  16. 16. Cloud Era capistrano vlad mina
  17. 17. Cloud Era capistrano vlad mina ssh -> cd ..-> rails s production
  18. 18. Cloud Era
  19. 19. Every Era Wrong There is no daemons There is a lot crushes There is a lot bugs There is no persistence on restart
  20. 20. “Something went wrong” –Nginx default page
  21. 21. Usual fix init script passenger
  22. 22. Better fix daemon tools runit systemd
  23. 23. RUNIT a UNIX init scheme with service supervision
  24. 24. capistrano + runit
  25. 25. capistrano + runit all parts are services all parts will be restarted all parts management without root/sudo
  26. 26. capistrano-runit gems collection puma sidekiq resque rake
  27. 27. https://github.com/ capistrano-runit
  28. 28. QUESTIONS?

×