Skip to content

Commit

Permalink
Make datasette script more robust to updating
Browse files Browse the repository at this point in the history
  • Loading branch information
erictleung committed May 3, 2021
1 parent cc196c3 commit 7c4774a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data-raw/datasette.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

# Setup datasette deployment for pixarfilms to Heroku
# Author: Eric T Leung
# Last ran: 2021-04-13
# Created: 2021-04-13
# Last ran: 2021-05-02
# Run: bash datasette.sh

# Installation
# pip3 install datasette csvs-to-sqlite

# Convert CSV files to SQLite3 database file
FILE=pixarfilms.db
if [ -f "$FILE" ]; then
rm $FILE
fi
csvs-to-sqlite *.csv pixarfilms.db

# Publish to Heroku
Expand Down

0 comments on commit 7c4774a

Please sign in to comment.