5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-02-21 11:41:48 +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]
def nodes
@nodes ||= ENV.fetch('NODES', 1).to_i
@nodes ||= Rails.application.nodes.size + 1
end
def period

View file

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