hokuto 0.0.1.8.1.8 → 0.0.2.8.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Hokuto
2
2
 
3
- TODO: Write a gem description
3
+ Hokuto: a lightweight appserver for rack-dependent ruby web applications.
4
+
5
+ ## Character
6
+
7
+ Hokuto is a lightweight web application server focused to handle many many requests. This gem is based on Jetty. Due to Jetty's very artful request handling, this gem can take over the well known "C10K Problem".
8
+
9
+ "Hokuto" is named after the express operated by Hokkaido Railway Company (a.k.a. JR Hokkaido). The express is the fastest train of the narrow guage trains in Japan for the average speed. It runs on tight curves quickly with the tilting system which is often called 'pendular'. I thought that this gem can be liken to the express train because of the fine mechanism to handle many many requests. This is why I named this gem.
4
10
 
5
11
  ## Installation
6
12
 
@@ -18,7 +24,18 @@ Or install it yourself as:
18
24
 
19
25
  ## Usage
20
26
 
21
- TODO: Write usage instructions here
27
+ If you just run it by the commands as follows:
28
+
29
+ $ hokuto
30
+
31
+ Currently implemented options are below:
32
+ -p, --http-port=HTTP_PORT specify the HTTP port(default: 7080)
33
+ -c, --context-root=PATH specify the context root(default: /)
34
+ -d, --base-directory=DIR specify the root of apps(default: working directory)
35
+ -e, --environment=ENV specify the rack environment (default: 'development')
36
+ -sINSTANCES_ON_STARTUP, --min-instances specify the number of JRuby instances on startup(default: 1)
37
+ -xMAXIMUM_INSTANCES, --max-instances specify the maximum number of JRuby instances(default: 1)
38
+ Note that your app will run the multithreaded mode if INSTANCES_ON_STARTUP == MAXIMUM_INSTANCES == 1 (default). If you want to perform highly with limited resources, you should not use multiple instances. Just you should implement apps in the multithreaded manner.
22
39
 
23
40
  ## Contributing
24
41
 
@@ -51,7 +51,7 @@ module Hokuto
51
51
  parser.on('-P', '--https-port=SECURE_PORT'){|v|result[:https_port] = v}
52
52
  parser.on('-c', '--context-root=PATH'){|v|app_config[:context_root] = v}
53
53
  parser.on('-d', '--base-directory=DIR'){|v|app_config[:base_directory] = v}
54
- parser.on('-e', '--environment=DIR'){|v|app_config[:environment] = v}
54
+ parser.on('-e', '--environment=ENV'){|v|app_config[:environment] = v}
55
55
  parser.on('-s', '--min-instances=INSTANCES_ON_STARTUP'){|v|app_config[:min_instances] = v}
56
56
  parser.on('-x', '--max-instances=MAXIMUM_INSTANCES'){|v|app_config[:max_instances] = v}
57
57
  parser.parse!
@@ -1,3 +1,3 @@
1
1
  module Hokuto
2
- VERSION = "0.0.1.8.1.8"
2
+ VERSION = "0.0.2.8.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hokuto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.8.1.8
4
+ version: 0.0.2.8.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: