photosite/scripts/generate.sh

13 lines
145 B
Bash

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