Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PG 15 locally, update rake for development #63

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .lando.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: allsearch
services:
allsearch_database:
type: postgres:13
type: postgres:15
portforward: true
catalog_solr:
type: solr:8.4
Expand Down
11 changes: 9 additions & 2 deletions lib/tasks/servers.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

namespace :servers do
desc 'Start development servers'
task start: :environment do
task initialize: :environment do
Rake::Task['db:create'].invoke
Rake::Task['db:migrate'].invoke
end

desc 'Start the Apache Solr and PostgreSQL container services using Lando.'
task start: :environment do
Rake::Task['solr:update_configs'].invoke
`lando start`
system('lando start')
system('rake servers:initialize')
system('rake servers:initialize RAILS_ENV=test')
end
end