hyraft-server 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -36
- data/lib/hyraft/server/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e0d531ec235e514402814a2ebae8505d9bc773fb2021a1d6c255682307456e3
|
|
4
|
+
data.tar.gz: 03de7004ecd30980d074bd0d12671aa8543fa70704a65f21becd36a0e08c4ea9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6697ffb36e5c6daab810b5f842a5fdfd8cd6697086bf969c4572f557eabea0b3ac86102344a7cf801dfeb915967468f78eab43f57d5a9b599b91099ab6cf7de3
|
|
7
|
+
data.tar.gz: 23252f1b48144ef7106b8d6c40cc0217a3955d31777dec453efdcb671162f59e060e05a666ad946d2ad13f73f1a298d25ac526e65d25e41d0e81abd513f471ef
|
data/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|

|
|
7
7
|

|
|
8
8
|

|
|
9
|
+

|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
</div>
|
|
@@ -14,44 +16,21 @@
|
|
|
14
16
|
|
|
15
17
|
Web server for Hyraft framework
|
|
16
18
|
|
|
17
|
-
Dual-server web stack implementing hexagonal architecture. Supports simultaneous web and API servers across multiple Ruby backends (Puma, Thin, Falcon, Iodine) for the Hyraft platform.
|
|
18
|
-
|
|
19
|
-
## Installation
|
|
20
|
-
|
|
21
|
-
Open Gemfile:
|
|
22
|
-
put:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
gem 'hyraft-server'
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Switch to Thin # Gemfile in your application (Windows / Linux)
|
|
29
|
-
```bash
|
|
30
|
-
gem 'thin'
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Switch to Puma # Gemfile in your application (Windows / Linux)
|
|
34
19
|
```bash
|
|
35
|
-
|
|
20
|
+
Dual-server web stack implementing hexagonal architecture. Supports simultaneous web and API servers across multiple Ruby backends (Puma, Thin, Falcon, Iodine) for the Hyraft framework.
|
|
36
21
|
```
|
|
37
22
|
|
|
23
|
+
## Installation
|
|
38
24
|
|
|
39
|
-
Switch server to Falcon # Gemfile in your application (Linux)
|
|
40
|
-
```bash
|
|
41
|
-
gem 'falcon'
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Switch server to Iodine # Gemfile in your application (Linux)
|
|
45
25
|
```bash
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
Server options:
|
|
27
|
+
___________________________________________________
|
|
48
28
|
|
|
29
|
+
Use Thin server: gem 'thin' # Windows/Linux
|
|
30
|
+
Use Puma server: gem 'puma' # Windows/Linux
|
|
31
|
+
Use Falcon server: gem 'falcon' # Linux
|
|
32
|
+
Use Iodine server: gem 'iodine' # Linux
|
|
49
33
|
|
|
50
|
-
|
|
51
|
-
Install the gem and add to the application's Gemfile by executing:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
bundle install
|
|
55
34
|
```
|
|
56
35
|
|
|
57
36
|
|
|
@@ -59,27 +38,33 @@ bundle install
|
|
|
59
38
|
|
|
60
39
|
Command Variants
|
|
61
40
|
```rb
|
|
62
|
-
|
|
41
|
+
_______________________________________________________________________
|
|
42
|
+
|
|
43
|
+
Alias: (or Shortcut)
|
|
63
44
|
|
|
64
45
|
hyr s [server-name] Start web server
|
|
65
46
|
hyr s [server-name] --api Start API server directly
|
|
66
47
|
hyr s-v Show version
|
|
67
48
|
hyr s-h Show this help
|
|
49
|
+
_______________________________________________________________________
|
|
68
50
|
|
|
69
|
-
|
|
51
|
+
Medium Form:
|
|
70
52
|
|
|
71
53
|
hyr-serve [server-name] Start web server
|
|
72
54
|
hyr-serve [server-name] --api Start API server directly
|
|
73
55
|
hyr-serve s-v Show version
|
|
74
56
|
hyr-serve s-h Show this help
|
|
57
|
+
_______________________________________________________________________
|
|
75
58
|
|
|
76
|
-
|
|
59
|
+
Full Command:
|
|
77
60
|
|
|
78
61
|
hyraft-server [server-name] [options] Start web server
|
|
79
62
|
hyraft-server [server-name] --api [options] Start API server directly
|
|
80
63
|
hyraft-server server-version Show version
|
|
81
64
|
hyraft-server server-help Show this help
|
|
82
65
|
|
|
66
|
+
_______________________________________________________________________
|
|
67
|
+
|
|
83
68
|
Examples:
|
|
84
69
|
|
|
85
70
|
hyr s thin # Start web server with Thin
|
|
@@ -91,7 +76,10 @@ hyr-serve thin # Start web server with Thin
|
|
|
91
76
|
hyraft-server thin # Start web server with Thin
|
|
92
77
|
hyraft-server thin --api # Start API server with Thin
|
|
93
78
|
hyraft-server puma -p 1091 # Start web server on port 1091
|
|
79
|
+
hyraft-server puma --port-api 1092 # Start API server on port 1092
|
|
94
80
|
hyraft-server falcon --http2 # Start with HTTP/2 (Falcon)
|
|
81
|
+
hyraft-server falcon --http3 # Start with HTTP/3 (Falcon)
|
|
82
|
+
_______________________________________________________________________
|
|
95
83
|
|
|
96
84
|
|
|
97
85
|
```
|
|
@@ -101,7 +89,7 @@ hyraft-server falcon --http2 # Start with HTTP/2 (Falcon)
|
|
|
101
89
|
Test Environment
|
|
102
90
|
```rb
|
|
103
91
|
|
|
104
|
-
|
|
92
|
+
Alias: (or Shortcut)
|
|
105
93
|
|
|
106
94
|
APP_ENV=test hyr s [server-name] Start web server (test)
|
|
107
95
|
APP_ENV=test hyr s [server-name] --api Start API server directly (test)
|
|
@@ -124,7 +112,7 @@ APP_ENV=test hyr s falcon
|
|
|
124
112
|
Production Environment
|
|
125
113
|
```rb
|
|
126
114
|
|
|
127
|
-
|
|
115
|
+
Alias: (or Shortcut)
|
|
128
116
|
|
|
129
117
|
APP_ENV=production hyr s [server-name] Start web server (production)
|
|
130
118
|
APP_ENV=production hyr s [server-name] --api Start API server directly (production)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hyraft-server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Demjhon Silver
|
|
@@ -75,6 +75,7 @@ licenses:
|
|
|
75
75
|
- MIT
|
|
76
76
|
metadata:
|
|
77
77
|
homepage_uri: https://github.com/demjhonsilver/hyraft-server
|
|
78
|
+
documentation_uri: https://www.rubydoc.info/gems/hyraft-server
|
|
78
79
|
source_code_uri: https://github.com/demjhonsilver/hyraft-server/tree/main
|
|
79
80
|
changelog_uri: https://github.com/demjhonsilver/hyraft-server/blob/main/CHANGELOG.md
|
|
80
81
|
rubygems_mfa_required: 'true'
|