Merge branch 'chore/fix_ci' into feature/admin_stats
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao 2023-02-14 13:18:38 +08:00
commit 164400adec
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
3 changed files with 11 additions and 47 deletions

View File

@ -1,12 +1,6 @@
# SQLite. Versions 3.8.0 and up are supported.
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
timeout: 5000
development:
@ -17,11 +11,11 @@ development:
<<: *default
adapter: postgresql
database_tasks: false
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") %>
host: <%= ENV["LNDHUB_PG_HOST"] || 'localhost' %>
port: <%= ENV["LNDHUB_PG_PORT"] || 5432 %>
database: <%= ENV["LNDHUB_PG_DATABASE"] || 'lndhub' %>
username: <%= ENV["LNDHUB_PG_USERNAME"] || 'lndhub' %>
password: <%= ENV["LNDHUB_PG_PASSWORD"] %>
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
@ -48,8 +42,8 @@ production:
<<: *default
adapter: postgresql
database_tasks: false
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") { '' } %>
host: <%= ENV["LNDHUB_PG_HOST"] || 'localhost' %>
port: <%= ENV["LNDHUB_PG_PORT"] || 5432 %>
database: <%= ENV["LNDHUB_PG_DATABASE"] || 'lndhub' %>
username: <%= ENV["LNDHUB_PG_USERNAME"] || 'lndhub' %>
password: <%= ENV["LNDHUB_PG_PASSWORD"] %>

View File

@ -1,15 +0,0 @@
# frozen_string_literal: true
require "rails_helper"
RSpec.describe QuickstatsContainerComponent, type: :component do
pending "add some examples to (or delete) #{__FILE__}"
# it "renders something useful" do
# expect(
# render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html
# ).to include(
# "Hello, components!"
# )
# end
end

View File

@ -1,15 +0,0 @@
# frozen_string_literal: true
require "rails_helper"
RSpec.describe QuickstatsItemComponent, type: :component do
pending "add some examples to (or delete) #{__FILE__}"
# it "renders something useful" do
# expect(
# render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html
# ).to include(
# "Hello, components!"
# )
# end
end