gohere 0.3.3 → 0.4.0
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.
- package/README.md +27 -8
- package/package.json +1 -1
- package/vendor/linux-x64/gohere +0 -0
- package/vendor/win32-x64/gohere.exe +0 -0
package/README.md
CHANGED
|
@@ -40,12 +40,24 @@ Run a named package script:
|
|
|
40
40
|
gohere dev:web
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
Run multiple server scripts:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
gohere dev:web dev:api
|
|
47
|
+
```
|
|
48
|
+
|
|
43
49
|
Run a raw command:
|
|
44
50
|
|
|
45
51
|
```bash
|
|
46
52
|
gohere -- npm run dev
|
|
47
53
|
```
|
|
48
54
|
|
|
55
|
+
Use a custom `.localhost` name for this run:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
gohere --as api
|
|
59
|
+
```
|
|
60
|
+
|
|
49
61
|
Route to a known target port:
|
|
50
62
|
|
|
51
63
|
```bash
|
|
@@ -79,6 +91,7 @@ gohere list --verbose
|
|
|
79
91
|
gohere stop
|
|
80
92
|
gohere prune
|
|
81
93
|
gohere doctor
|
|
94
|
+
gohere service stop
|
|
82
95
|
gohere uninstall
|
|
83
96
|
```
|
|
84
97
|
|
|
@@ -86,22 +99,28 @@ gohere uninstall
|
|
|
86
99
|
|
|
87
100
|
Route status can be `ready`, `dead`, or `unknown`. `prune` removes only routes that are confidently dead.
|
|
88
101
|
|
|
89
|
-
## Uninstall
|
|
102
|
+
## Service And Uninstall
|
|
103
|
+
|
|
104
|
+
Stop the background service without removing gohere:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
gohere service stop
|
|
108
|
+
```
|
|
90
109
|
|
|
91
|
-
Clean up the copied
|
|
110
|
+
Clean up the copied service binary before removing the npm package:
|
|
92
111
|
|
|
93
112
|
```bash
|
|
94
113
|
gohere uninstall
|
|
95
114
|
npm uninstall -g gohere
|
|
96
115
|
```
|
|
97
116
|
|
|
98
|
-
`gohere uninstall` removes the local
|
|
117
|
+
`gohere uninstall` removes the local service install and asks before deleting routes, logs, and token state.
|
|
99
118
|
|
|
100
119
|
## How it works
|
|
101
120
|
|
|
102
|
-
`gohere` runs a local
|
|
121
|
+
`gohere` runs a local service on HTTP port `80`.
|
|
103
122
|
|
|
104
|
-
Each project gets a hidden local port. The
|
|
123
|
+
Each project gets a hidden local port. The service maps the clean `.localhost` hostname to that port using the request `Host` header.
|
|
105
124
|
|
|
106
125
|
State is stored in:
|
|
107
126
|
|
|
@@ -109,11 +128,11 @@ State is stored in:
|
|
|
109
128
|
~/.gohere/
|
|
110
129
|
```
|
|
111
130
|
|
|
112
|
-
On Linux/WSL, first-time setup may ask for permission so the
|
|
131
|
+
On Linux/WSL, first-time setup may ask for permission so the service can bind to local port `80`.
|
|
113
132
|
|
|
114
|
-
On Windows, first-time setup starts the local
|
|
133
|
+
On Windows, first-time setup starts the local service directly on `127.0.0.1:80`.
|
|
115
134
|
|
|
116
|
-
When used from WSL, `gohere` reuses a running Windows
|
|
135
|
+
When used from WSL, `gohere` reuses a running Windows service automatically.
|
|
117
136
|
|
|
118
137
|
## Platform support
|
|
119
138
|
|
package/package.json
CHANGED
package/vendor/linux-x64/gohere
CHANGED
|
Binary file
|
|
Binary file
|