Create a venv
This commit is contained in:
parent
a8e5aea582
commit
dff24b8ca1
1 changed files with 7 additions and 0 deletions
7
index.sh
7
index.sh
|
@ -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] (
|
||||
|
|
Loading…
Add table
Reference in a new issue