Environments support added to Gitlab config

This commit is contained in:
Andrew8xx8 2013-02-14 11:44:34 +04:00
parent ed3f44085e
commit 77a3bfe1de
2 changed files with 113 additions and 102 deletions

View file

@ -7,6 +7,7 @@
# 2. Replace gitlab -> host with your domain
# 3. Replace gitlab -> email_from
production: &base
#
# 1. GitLab app settings
# ==========================
@ -125,3 +126,12 @@ git:
max_size: 5242880 # 5.megabytes
# Git timeout to read commit, in seconds
timeout: 10
development:
<<: *base
test:
<<: *base
staging:
<<: *base

View file

@ -1,5 +1,6 @@
class Settings < Settingslogic
source "#{Rails.root}/config/gitlab.yml"
namespace Rails.env
class << self
def gitlab_on_non_standard_port?