Skip to content

Commit

Permalink
docs: add important step for importing data
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds authored Feb 15, 2024
1 parent 73af6b8 commit c15d899
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ with more data without performing a migration, then it's a bit more involved.
`fly sftp`)
1. SSH into your production server and run the following command:
```sh nonumber
sqlite3 data.db < seed.sql
sqlite3 /tmp/data.db < seed.sql
```
1. Import the data into your database via litefs:
```sh nonumber
litefs import -name sqlite.db /tmp/data.db
```
1. Verify that your production database has been seeded correctly. If it hasn't,
then restore your backup (asap).
Expand Down

0 comments on commit c15d899

Please sign in to comment.