Files
comfychan/Makefile
T
2025-04-22 00:06:11 -04:00

24 lines
664 B
Makefile

live/templ:
templ generate --watch --proxy="http://localhost:8080" --cmd="go run ./web" --open-browser=false -v
live/sync_assets:
go run github.com/air-verse/air@v1.61.7 \
--build.cmd "templ generate --notify-proxy" \
--build.bin "true" \
--build.delay "100" \
--build.exclude_dir "" \
--build.include_dir "web/static" \
--build.include_ext "js,css"
live:
make -j2 live/templ live/sync_assets
db/seed:
sqlite3 ./internal/database/comfychan.db < ./internal/database/seed.sql
db/seed/f:
rm ./internal/database/comfychan.db && sqlite3 ./internal/database/comfychan.db < ./internal/database/seed.sql
img/clear:
rm -rf ./web/static/media/posts || true