Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
--unix-socket
(#353)
* Add support for —socket * Use unix-socket instead of socket * Add SIGINT and SIGTERM graceful shutdown * Remove unneeded callback * Use single sigterm/sigint
- Loading branch information
1 parent
066c06a
commit f3b2978
Showing
4 changed files
with
170 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Port and socket provided | ||
|
||
#### Why This Error Occurred | ||
|
||
When the `micro` command was ran, you passed both a port and a socket. Node.js can only listen to either a port or a socket, not both. | ||
|
||
#### Possible Ways to Fix It | ||
|
||
Only provide one of the arguments. If both are needed you can start 2 instances of micro with different arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Port and socket provided | ||
|
||
#### Why This Error Occurred | ||
|
||
When the `micro` command was ran, you passed `-s` or `--socket` without a value. | ||
|
||
#### Possible Ways to Fix It | ||
|
||
Run `micro` with a value: | ||
|
||
``` | ||
micro -s '/tmp/micro.sock' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters