add targets for dockerized local testing
This commit is contained in:
parent
8927023161
commit
44294e9c6b
2 changed files with 49 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -4,6 +4,13 @@ site:
|
|||
serve: site
|
||||
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
|
||||
|
||||
dock: site
|
||||
docker run --name bloglocal -p 8000:8000 -v `pwd`/_site:/usr/share/nginx/html:ro -v `pwd`/local-nginx.conf:/etc/nginx/nginx.conf:ro nginx
|
||||
|
||||
undock:
|
||||
docker stop bloglocal
|
||||
docker rm bloglocal
|
||||
|
||||
venv2:
|
||||
virtualenv ~/.venv/makesite
|
||||
echo . ~/.venv/makesite/bin/activate > venv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue