Spaces:
Runtime error
Runtime error
File size: 1,980 Bytes
f571c33 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# 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.yml yq -o json > 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: * |