5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-02-22 14:51:51 +00:00

Merge branch 'issue-8912' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-12-28 16:52:45 -03:00
commit 73922b2a99
2 changed files with 2 additions and 6 deletions

View file

@ -209,7 +209,7 @@ class StatsController < ApplicationController
# #
# @return [Integer] # @return [Integer]
def nodes def nodes
@nodes ||= ENV.fetch('NODES', 1).to_i @nodes ||= Rails.application.nodes.size + 1
end end
def period def period

View file

@ -26,8 +26,4 @@ test:
user: <%= ENV['USER'] %> user: <%= ENV['USER'] %>
production: production:
adapter: postgresql url: <%= ENV['DATABASE_URL'] %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
database: <%= ENV.fetch('DATABASE') { 'sutty' } %>
user: sutty
host: postgresql