photosite/scripts/generate.sh

13 lines
139 B
Bash
Raw Normal View History

2024-01-06 05:25:07 +00:00
#!/bin/bash
set -e
2024-12-03 04:09:32 +00:00
source .env
rm -rf data/site.db
2024-12-03 04:09:32 +00:00
mkdir -p data
2024-12-09 20:15:27 +00:00
mkdir -p www
2024-12-03 04:09:32 +00:00
cat "sql/setup.sql" | sqlite3 "${DB}"
2024-01-06 05:25:07 +00:00
node dist/generate