Skip to content

Commit

Permalink
Ensure scripts/console uses db/dev.sqlite3.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Dec 21, 2023
1 parent 7eb4bb7 commit 3ab44a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/console
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env bash

if [[ -n $DATABASE_URL ]]; then
export DATABASE_URL="sqlite3:db/dev.sqlite3"
fi

bundle exec irb -Ilib -r ./app.rb

0 comments on commit 3ab44a1

Please sign in to comment.