adds a command called dserve-php that runs an apache with php

This commit is contained in:
nicosommi 2017-02-02 12:26:19 -03:00
commit d26bde9941
2 changed files with 17 additions and 0 deletions

View file

@ -5,6 +5,13 @@ dserve() {
&& docker port $container
}
dserve-php() {
local container=dserve-php-${$(pwd)//\//-}
(docker restart $container \
|| docker run -d --name $container -P -v "$(pwd):/var/www/html:ro" php:5-apache) \
&& docker port $container
}
doc() {
# TODO: add zsh conf
# bind shell so we can change current dir (cd, etc)