Skip to content

Commit

Permalink
Use the local db/dev.sqlite3 database in development mode (closes #84
Browse files Browse the repository at this point in the history
…).
  • Loading branch information
postmodern committed Dec 20, 2023
1 parent 33a622e commit 125941d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=sqlite3:db/dev.sqlite3
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ require 'kramdown/man/task'
Kramdown::Man::Task.new

require 'ronin/db/tasks'
Ronin::DB::Tasks.new
Ronin::DB::Tasks.new(
database: {
adapter: :sqlite3,
database: 'db/dev.sqlite3'
}
)
8 changes: 6 additions & 2 deletions scripts/server
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,12 @@ fi
log "Starting Web server on localhost:${port} and Sidekiq ..."

case "$environment" in
development) bundle exec foreman start -p "$port" -f Procfile.dev ;;
production) bundle exec foreman start -p "$port" ;;
development)
bundle exec foreman start -p "$port" -f Procfile.dev -e .env.dev
;;
production)
bundle exec foreman start -p "$port"
;;
esac

for pid in "${pids[@]}"; do
Expand Down

0 comments on commit 125941d

Please sign in to comment.