Skip to content

Commit

Permalink
update dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
matuskosut committed Jun 15, 2023
1 parent 9ce9baf commit cc3127d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ bootstrap:

up: launch mount bootstrap ssh ## Start a VM

fwd: ## Forward app port: make app=prometheus port=9090 fwd
fwd: ## Forward app port: make unit=prometheus/0 port=9090 fwd
$(eval VMIP := $(shell multipass exec $(VM_NAME) -- hostname -I | cut -d' ' -f1))
echo "Opening browser: http://$(VMIP):$(port)"
bash -c "(sleep 1; open 'http://$(VMIP):$(port)') &"
multipass exec $(VM_NAME) -- juju ssh $(app)/0 -N -L 0.0.0.0:$(port):0.0.0.0:$(port)
multipass exec $(VM_NAME) -- juju ssh $(unit) -N -L 0.0.0.0:$(port):0.0.0.0:$(port)

down: ## Stop the VM
multipass down $(VM_NAME)
Expand Down

0 comments on commit cc3127d

Please sign in to comment.