addet drweb function and made it semi dynamic
This commit is contained in:
parent
0af7240933
commit
d250b9a29f
1 changed files with 1 additions and 0 deletions
1
.zshrc
1
.zshrc
|
@ -233,6 +233,7 @@ _alias(){
|
||||||
alias dc="docker compose"
|
alias dc="docker compose"
|
||||||
alias appupdate="docker compose pull && docker compose up -d --force-recreate"
|
alias appupdate="docker compose pull && docker compose up -d --force-recreate"
|
||||||
drweb(){
|
drweb(){
|
||||||
|
[[ -z "$1" ]] && 1="."
|
||||||
docker run -p "8080:80" -v "$1:/usr/share/nginx/html:ro" nginx:alpine
|
docker run -p "8080:80" -v "$1:/usr/share/nginx/html:ro" nginx:alpine
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue