mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
16 lines
419 B
Ruby
16 lines
419 B
Ruby
Rails.application.configure do
|
|
# Maximum number of repositories per team allowed
|
|
config.x.team_repositories_limit =
|
|
if ENV['TEAM_REPOSITORIES_LIMIT']
|
|
ENV['TEAM_REPOSITORIES_LIMIT'].to_i
|
|
else
|
|
Constants::DEFAULT_TEAM_REPOSITORIES_LIMIT
|
|
end
|
|
|
|
config.x.global_repositories_limit =
|
|
if ENV['GLOBAL_REPOSITORIES_LIMIT']
|
|
ENV['GLOBAL_REPOSITORIES_LIMIT'].to_i
|
|
else
|
|
0
|
|
end
|
|
end
|