Environments support added to Gitlab config
This commit is contained in:
parent
ed3f44085e
commit
77a3bfe1de
2 changed files with 113 additions and 102 deletions
|
@ -7,6 +7,7 @@
|
||||||
# 2. Replace gitlab -> host with your domain
|
# 2. Replace gitlab -> host with your domain
|
||||||
# 3. Replace gitlab -> email_from
|
# 3. Replace gitlab -> email_from
|
||||||
|
|
||||||
|
production: &base
|
||||||
#
|
#
|
||||||
# 1. GitLab app settings
|
# 1. GitLab app settings
|
||||||
# ==========================
|
# ==========================
|
||||||
|
@ -125,3 +126,12 @@ git:
|
||||||
max_size: 5242880 # 5.megabytes
|
max_size: 5242880 # 5.megabytes
|
||||||
# Git timeout to read commit, in seconds
|
# Git timeout to read commit, in seconds
|
||||||
timeout: 10
|
timeout: 10
|
||||||
|
|
||||||
|
development:
|
||||||
|
<<: *base
|
||||||
|
|
||||||
|
test:
|
||||||
|
<<: *base
|
||||||
|
|
||||||
|
staging:
|
||||||
|
<<: *base
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
class Settings < Settingslogic
|
class Settings < Settingslogic
|
||||||
source "#{Rails.root}/config/gitlab.yml"
|
source "#{Rails.root}/config/gitlab.yml"
|
||||||
|
namespace Rails.env
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def gitlab_on_non_standard_port?
|
def gitlab_on_non_standard_port?
|
||||||
|
|
Loading…
Reference in a new issue