mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Update Korean translation to f749860
This commit is contained in:
parent
f749860618
commit
62ab7a2b8d
1 changed files with 41 additions and 4 deletions
37
README.ko.md
37
README.ko.md
|
@ -111,6 +111,7 @@ thin이 설치되어 있을 경우 Sinatra는 thin을 통해 실행합니다.
|
|||
* [요청/인스턴스 범위](#요청인스턴스-범위)
|
||||
* [위임 범위(Delegation Scope)](#위임-범위delegation-scope)
|
||||
* [명령행(Command Line)](#명령행command-line)
|
||||
* [다중 스레드(Multi-threading)](#다중-스레드multi-threading)
|
||||
* [요구사항(Requirement)](#요구사항requirement)
|
||||
* [최신(The Bleeding Edge)](#최신the-bleeding-edge)
|
||||
* [Bundler를 사용하여](#bundler를-사용하여)
|
||||
|
@ -2757,6 +2758,40 @@ ruby myapp.rb [-h] [-x] [-e ENVIRONMENT] [-p PORT] [-o HOST] [-s HANDLER]
|
|||
-x # mutex 잠금 켜기 (기본값은 off)
|
||||
```
|
||||
|
||||
### 다중 스레드(Multi-threading)
|
||||
|
||||
_Konstantin의 [StackOverflow의 답변][so-answer]에서 가져왔습니다_
|
||||
|
||||
시나트라는 동시성 모델을 전혀 사용하지 않지만, Thin, Puma, WEBrick 같은
|
||||
기저의 Rack 핸들러(서버)는 사용합니다. 시나트라 자신은 스레드에 안전하므로
|
||||
랙 핸들러가 동시성 스레드 모델을 사용한다고해도 문제가 되지는 않습니다.
|
||||
이는 서버를 시작할 때, 서버에 따른 정확한 호출 방법을 사용했을 때의
|
||||
이야기입니다. 밑의 예제는 다중 스레드 Thin 서버를 시작하는 방법입니다.
|
||||
|
||||
``` ruby
|
||||
# app.rb
|
||||
|
||||
require 'sinatra/base'
|
||||
|
||||
class App < Sinatra::Base
|
||||
get '/' do
|
||||
"Hello, World"
|
||||
end
|
||||
end
|
||||
|
||||
App.run!
|
||||
|
||||
```
|
||||
|
||||
서버를 시작하는 명령어는 다음과 같습니다.
|
||||
|
||||
``` shell
|
||||
thin --threaded start
|
||||
```
|
||||
|
||||
|
||||
[so-answer]: http://stackoverflow.com/questions/6278817/is-sinatra-multi-threaded/6282999#6282999)
|
||||
|
||||
## 요구사항(Requirement)
|
||||
|
||||
다음의 루비 버전은 공식적으로 지원됩니다.
|
||||
|
@ -2921,6 +2956,8 @@ SemVerTag를 준수합니다.
|
|||
* [트위터](http://twitter.com/sinatra)
|
||||
* [메일링 리스트](http://groups.google.com/group/sinatrarb/topics)
|
||||
* IRC: [#sinatra](irc://chat.freenode.net/#sinatra) http://freenode.net
|
||||
* 슬랙의 [Sinatra & Friends](https://sinatrarb.slack.com)입니다.
|
||||
[여기](https://sinatra-slack.herokuapp.com/)에서 가입가능합니다.
|
||||
* [Sinatra Book](https://github.com/sinatra/sinatra-book/) Cookbook 튜토리얼
|
||||
* [Sinatra Recipes](http://recipes.sinatrarb.com/) 커뮤니티가 만드는 레시피
|
||||
* http://rubydoc.info에 있는 [최종 릴리스](http://rubydoc.info/gems/sinatra)
|
||||
|
|
Loading…
Add table
Reference in a new issue