mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 15:01:50 +00:00
Merge branch 'issue-8912' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
73922b2a99
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue