Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

150120 Rack 어플리케이션 개요

1.558 Aufrufe

Veröffentlicht am

코드: https://github.com/marocchino/rack_example
동영상: https://www.youtube.com/watch?v=A1JyeGEColQ

Veröffentlicht in: Ingenieurwesen
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ,Download or read Ebooks here ... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • (Unlimited)....ACCESS WEBSITE Over for All Ebooks ................ accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • (Unlimited)....ACCESS WEBSITE Over for All Ebooks ................ accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ..................................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookeBOOK Crime, eeBOOK Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ..................................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookeBOOK Crime, eeBOOK Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

150120 Rack 어플리케이션 개요

  1. 1. Rack 어플리케이션 작성 개요
  2. 2. 이 슬라이드는 크게 11가지 주제를 다룹니다.
  3. 3. 01. Rack이란 무엇인가? 10. 미들웨어
 11. 레일즈에서의 Rack 미들웨어
  4. 4. 01. Rack이란 무엇인가?
  5. 5. 공식 홈페이지에는 이렇게 적혀있습니다.
  6. 6. 모듈러 루비 웹서버 인터페이스 쪼갤수 있는 입출력 하는 애
  7. 7. HelloRack Request Response 말은 어려운데 그냥 간단한 웹서버용 인터페이스
  8. 8. HelloRack Request hello_rack.call(env)
  9. 9. HelloRack Response [status_code, header, body] ※스테이터스 코드의 종류는 rfc2616 를 보세요.
  10. 10. 데모
  11. 11. call(env)메세지를 이해하는 객체는 모두 Rack이 될 수 있음 (nil, false는 빼고) ref: https://github.com/macournoyer/thin/blob/master/lib/thin/server.rb#L153
  12. 12. 여기까지 이해하셨으면
  13. 13. 아마 이런 생각이 들겁니다.
  14. 14. 그럼 로그는? URL은? 등등..
  15. 15. 다시 데모
  16. 16. 이런식으로 만들면 됩니다.
  17. 17. 레일즈도 시나트라를 포함한 모든 Rack 어플은
 기본적으로 이렇습니다.
  18. 18. 조금 복잡할 뿐이죠
  19. 19. 10. 미들웨어
  20. 20. 다시한번 이야기하자면
  21. 21. 모듈러 루비 웹서버 인터페이스 쪼갤수 있는 입출력 하는 애
  22. 22. 서버와 어플사이에 랙을 넣을 수 있다는 이야기죠
  23. 23. 서버와 어플 사이의 어플 여기서는 thin HelloRack
  24. 24. MiddleRack Request Response HelloRack
  25. 25. 데모
  26. 26. 이런식으로 하면 됩니다.
  27. 27. 그냥 콜스택이 하나 늘어나는 것 뿐
  28. 28. 11. 레일즈에서의 Rack 미들웨어
  29. 29. 어디서 쓰고 있나?
  30. 30. $ bundle exec rake middleware
  31. 31. $ bundle exec rake middleware
  32. 32. 어떻게 추가 하나?
  33. 33. config/application.rb ref: http://guides.rubyonrails.org/rails_on_rack.html
  34. 34. 어떤 경우 만드는가?
  35. 35. DB 연결관련 파라메터 처리 케쉬 예외처리 로깅 모든 리퀘스트에서 사용하는
  36. 36. 대부분은 레일즈에서 이미 알아서 해줍니다.
  37. 37. $ bundle exec rake middleware 케쉬 예외처리 DB연결
  38. 38. rails, rack, sinatra 에서 만들어준 것 이외의 커스텀 rack을 쓰는 걸 딱 두번 봤는데
  39. 39. 01. 독립적인 어플리케이션을 레일즈에 마운트 할때 ref: http://faye.jcoglan.com/ruby.html
  40. 40. 10. 트렌젝션을 사용하지 못하도록 강제하는 경우 ref: http://blog.livedoor.jp/sonots/archives/38797925.html
  41. 41. 10은 쓸만한 경우지만 01의 경우는 nignx에서 설정을 하는게 더 좋습니다. ref: http://stackoverflow.com/questions/15711053/nginx- passenger-to-serve-rails-apps-in-different-sub-uris
  42. 42.
  43. 43. - 헬퍼 오브젝트
 - Rack::Request
 - Rack::Response
 - Rack::Builder(라우터?)
 - Rack::Static(파일 서버)
 - Rack::Auth(인증하기)
 - 기타등등.. 이 슬라이드에서 다루지 않은 것들
  44. 44. 소스 코드가 길지 않으니 
 한번 읽어보세요. https://github.com/rack/rack/tree/master/lib/rack
  45. 45. 들어주셔서 감사합니다.
  46. 46. 질문 받아도 될까요?
  47. 47. 참고 자료 http://guides.rubyonrails.org/rails_on_rack.html http://m.onkey.org/ruby-on-rack-1-hello-rack
 http://faye.jcoglan.com/ruby.html
 https://github.com/rack/rack https://github.com/rack/rack-contrib https://github.com/sinatra/sinatra-contrib
 http://blog.livedoor.jp/sonots/archives/38797925.html http://hawkins.io/2012/07/rack_from_the_beginning/

×