# https://vercel.com/tddschn/biases-llm-reference-letters-datasette-vercel VERCEL_PROJECT_NAME := biases-llm-reference-letters-datasette-vercel THIRD_LEVEL_DOMAIN := kelly.datasette VERCEL_PROJECT_DOMAIN_SETTINGS_URL := https://vercel.com/tddschn/$(VERCEL_PROJECT_NAME)/settings/domains publish: metadata.json # vercel ~/.local/pipx/venvs/sqlite-utils/bin/python ~/config/scripts/sqlite_utils_enable_fts_all.py *.db datasette publish vercel *.db --project $(VERCEL_PROJECT_NAME) -m metadata.yml --install datasette-search-all --install datasette-render-timestamps --install datasette-render-images --install datasette-uptime --install datasette-render-html --install datasette-pretty-json open https://$(THIRD_LEVEL_DOMAIN).teddysc.me preview-db: datasette *.db -m metadata.yml remove-fts: ~/.local/pipx/venvs/sqlite-utils/bin/python ~/config/scripts/sqlite_utils_enable_fts_all.py -d *.db # ingest: # [[ -f llm-dra.db ]] && rm -v llm-dra.db # ~/.local/pipx/venvs/sqlite-utils/bin/python ./ingest.py # ~/.local/pipx/venvs/sqlite-utils/bin/python ~/config/scripts/sqlite_utils_enable_fts_all.py llm-dra.db # # publish-db: # datasette publish vercel --project $(VERCEL_PROJECT_NAME) llm-dra.db --install datasette-search-all --install datasette-render-timestamps --install datasette-render-images --install datasette-uptime --install datasette-render-html \ # --install datasette-pretty-json # # db-all: ingest publish-db # @echo 'Domain settings: $(VERCEL_PROJECT_DOMAIN_SETTINGS_URL)' open-vercel-project-domain-settings: open $(VERCEL_PROJECT_DOMAIN_SETTINGS_URL) add-dns-record: # https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-create-dns-record cli4 --post 'content=cname.vercel-dns.com.' 'name=$(THIRD_LEVEL_DOMAIN)' 'proxied=true' 'type=CNAME' 'comment=$(VERCEL_PROJECT_DOMAIN_SETTINGS_URL)' /zones/:teddysc.me/dns_records open-custom-domain: open https://$(THIRD_LEVEL_DOMAIN).teddysc.me .PHONY: *