Add a print to announce the server is running.
This commit is contained in:
parent
0d6621d389
commit
372542d914
@ -15,7 +15,7 @@ make --directory=docker
|
||||
|
||||
Next we need to launch the server:
|
||||
```bash
|
||||
docker run --rm --publish 127.0.0.1:3000:3000/tcp org-investigation
|
||||
docker run --rm --publish 3000:3000/tcp org-investigation
|
||||
```
|
||||
|
||||
This launches a server listening on port 3000, so pop open your browser to http://127.0.0.1:3000/ to access the web interface.
|
||||
|
@ -1,27 +1,9 @@
|
||||
IMAGE_NAME:=org-investigation
|
||||
# REMOTE_REPO:=harbor.fizz.buzz/private
|
||||
|
||||
.PHONY: all
|
||||
all: build push
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
docker build -t $(IMAGE_NAME) -f Dockerfile ../
|
||||
|
||||
.PHONY: push
|
||||
push:
|
||||
ifdef REMOTE_REPO
|
||||
docker tag $(IMAGE_NAME) $(REMOTE_REPO)/$(IMAGE_NAME)
|
||||
docker push $(REMOTE_REPO)/$(IMAGE_NAME)
|
||||
else
|
||||
@echo "REMOTE_REPO not defined, not pushing to a remote repo."
|
||||
endif
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
docker rmi $(IMAGE_NAME)
|
||||
ifdef REMOTE_REPO
|
||||
docker rmi $(REMOTE_REPO)/$(IMAGE_NAME)
|
||||
else
|
||||
@echo "REMOTE_REPO not defined, not removing from remote repo."
|
||||
endif
|
||||
|
@ -32,6 +32,7 @@ async fn main() {
|
||||
.fallback_service(static_files_service);
|
||||
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
||||
println!("Listening on port 3000. Pop open your browser to http://127.0.0.1:3000/ .");
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user