#34: update application.yml.sample
This commit is contained in:
parent
a9980798cc
commit
da4e999fac
|
@ -95,7 +95,8 @@ class Hook < ActiveRecord::Base
|
|||
protected
|
||||
|
||||
def post(action, params)
|
||||
uri = URI "http://127.0.0.1:8080/#{name}/#{action}"
|
||||
github_services = APP_CONFIG['github_services']
|
||||
uri = URI "http://#{github_services['ip']}:#{github_services['port']}/#{name}/#{action}"
|
||||
Net::HTTP.post_form uri, params.merge(:data => data.to_json)
|
||||
rescue # Dont care about it
|
||||
end
|
||||
|
|
|
@ -52,6 +52,9 @@ development:
|
|||
root_path: /var/rosa
|
||||
git_path: /var/rosa
|
||||
do-not-reply-email: do-not-reply@localhost
|
||||
github_services:
|
||||
ip: 127.0.0.1
|
||||
port: 1234
|
||||
|
||||
production:
|
||||
<<: *common
|
||||
|
@ -59,6 +62,9 @@ production:
|
|||
git_path: /mnt/gitstore
|
||||
do-not-reply-email: do-not-reply@abf.rosalinux.ru
|
||||
mailer_https_url: false
|
||||
github_services:
|
||||
ip: 127.0.0.1
|
||||
port: 1234
|
||||
|
||||
test:
|
||||
<<: *common
|
||||
|
|
Loading…
Reference in New Issue