forked from charmbracelet/soft-serve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support toggling servers on/off in configuration (charmbracelet…
…#594) To test this, tests added: `ensureservernotrunning [SERVICE_NAME]`
- Loading branch information
Jonatan Wallmander
committed
Nov 21, 2024
1 parent
f532a53
commit 2c506f4
Showing
7 changed files
with
181 additions
and
42 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
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,18 @@ | ||
# vi: set ft=conf | ||
|
||
# disable git listening | ||
env SOFT_SERVE_SSH_ENABLED=true | ||
env SOFT_SERVE_GIT_ENABLED=false | ||
env SOFT_SERVE_HTTP_ENABLED=true | ||
env SOFT_SERVE_STATS_ENABLED=true | ||
|
||
# start soft serve | ||
exec soft serve --sync-hooks & | ||
|
||
# wait for the ssh + other servers to come up | ||
ensureserverrunning SSH_PORT | ||
ensureserverrunning HTTP_PORT | ||
ensureserverrunning STATS_PORT | ||
|
||
# ensure that the disabled server is not running | ||
ensureservernotrunning GIT_PORT |
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,19 @@ | ||
# vi: set ft=conf | ||
|
||
# disable http listening | ||
env SOFT_SERVE_SSH_ENABLED=true | ||
env SOFT_SERVE_GIT_ENABLED=true | ||
env SOFT_SERVE_HTTP_ENABLED=false | ||
env SOFT_SERVE_STATS_ENABLED=true | ||
|
||
# start soft serve | ||
exec soft serve --sync-hooks & | ||
|
||
# wait for the ssh + other servers to come up | ||
ensureserverrunning SSH_PORT | ||
ensureserverrunning GIT_PORT | ||
ensureserverrunning STATS_PORT | ||
|
||
# ensure that the disabled server is not running | ||
ensureservernotrunning HTTP_PORT | ||
|
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,18 @@ | ||
# vi: set ft=conf | ||
|
||
# disable ssh listening | ||
env SOFT_SERVE_SSH_ENABLED=false | ||
env SOFT_SERVE_GIT_ENABLED=true | ||
env SOFT_SERVE_HTTP_ENABLED=true | ||
env SOFT_SERVE_STATS_ENABLED=true | ||
|
||
# start soft serve | ||
exec soft serve --sync-hooks & | ||
|
||
# wait for the git + other servers to come up | ||
ensureserverrunning GIT_PORT | ||
ensureserverrunning HTTP_PORT | ||
ensureserverrunning STATS_PORT | ||
|
||
# ensure that the disabled server is not running | ||
ensureservernotrunning SSH_PORT |
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,18 @@ | ||
# vi: set ft=conf | ||
|
||
# disable stats listening | ||
env SOFT_SERVE_SSH_ENABLED=true | ||
env SOFT_SERVE_GIT_ENABLED=true | ||
env SOFT_SERVE_HTTP_ENABLED=true | ||
env SOFT_SERVE_STATS_ENABLED=false | ||
|
||
# start soft serve | ||
exec soft serve --sync-hooks & | ||
|
||
# wait for the ssh + other servers to come up | ||
ensureserverrunning SSH_PORT | ||
ensureserverrunning GIT_PORT | ||
ensureserverrunning HTTP_PORT | ||
|
||
# ensure that the disabled server is not running | ||
ensureservernotrunning STATS_PORT |