1
Fork 0

Create a venv

This commit is contained in:
Jan-Erik Rediger 2023-06-20 15:00:23 +02:00
parent a8e5aea582
commit dff24b8ca1

View file

@ -2,6 +2,13 @@
set -e
if [[ ! -d .venv ]]; then
python3 -m venv .venv
pip install sqlite-utils markdown-to-sqlite markdown
fi
. .venv/bin/activate
DATABASE_PATH="${DATABASE_PATH:-blog.db}"
sqlite3 -batch -bail "$DATABASE_PATH" "
CREATE TABLE IF NOT EXISTS [posts] (