photosite/scripts/generate.sh

12 lines
126 B
Bash

#!/bin/bash
set -e
source .env
rm -rf data/site.db
mkdir -p data
cat "sql/setup.sql" | sqlite3 "${DB}"
node dist/generate