[Makefile] init
This commit is contained in:
30
Makefile
Normal file
30
Makefile
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
.PHONY: build events dev stop help prep
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "Available commands:"
|
||||||
|
@echo " make prep - Create venv and install requirements"
|
||||||
|
@echo " make events - Update site from CSV (build pages + images)"
|
||||||
|
@echo " make dev - Start development server"
|
||||||
|
@echo " make stop - Stop development server"
|
||||||
|
@echo " make build - Full website build sequence"
|
||||||
|
@echo " make help - Show this help message"
|
||||||
|
|
||||||
|
prep:
|
||||||
|
python3 -m venv .venv
|
||||||
|
./.venv/bin/pip install --upgrade pip
|
||||||
|
./.venv/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
|
build:
|
||||||
|
./.venv/bin/python atom_gen.py
|
||||||
|
./.venv/bin/python prep.py
|
||||||
|
./.venv/bin/python build_pages.py
|
||||||
|
|
||||||
|
events:
|
||||||
|
./.venv/bin/python build_pages.py
|
||||||
|
./.venv/bin/python image_poster.py
|
||||||
|
|
||||||
|
dev:
|
||||||
|
nginx -p . -c nginx.dev.conf
|
||||||
|
|
||||||
|
stop:
|
||||||
|
nginx -p . -s stop
|
||||||
Reference in New Issue
Block a user