feat(dev): Add recipe for exposing webhook server
Starts an ngrok tunnel to expose port 8080 to the Internet.
This commit is contained in:
parent
3c60ff99ef
commit
dfd7d32c94
2 changed files with 10 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,3 +20,4 @@ Cargo.lock
|
|||
# git-next runtime files
|
||||
git-next-server.toml
|
||||
.git-next.toml
|
||||
.envrc
|
||||
|
|
9
justfile
9
justfile
|
@ -6,3 +6,12 @@ validate-dev-branch:
|
|||
git rebase -i origin/main -x 'cargo build'
|
||||
git rebase -i origin/main -x 'cargo test'
|
||||
git rebase -i origin/main -x 'cargo clippy -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used'
|
||||
|
||||
start-ngrok:
|
||||
#!/usr/bin/env bash
|
||||
# Uses NGROK_DOMAIN env var if available
|
||||
if test -z ${NGROK_DOMAIN} ; then
|
||||
ngrok http 8080
|
||||
else
|
||||
ngrok http --domain=${NGROK_DOMAIN} 8080
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue