Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: use internal faye URL for posting to faye
  • Loading branch information
Christian Kruse committed Sep 9, 2015
1 parent e60c5f9 commit 2029a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/faye_helper.rb
Expand Up @@ -10,7 +10,7 @@ def publish(channel, message)
end

message = {:channel => channel, :data => message, :ext => {:password => @_faye_secret}}
uri = URI.parse(Rails.application.config.faye_url)
uri = URI.parse(Rails.application.config.internal_faye_url)

Net::HTTP.post_form(uri, :message => message.to_json)
rescue
Expand Down
1 change: 1 addition & 0 deletions config/environments/development.rb
Expand Up @@ -46,4 +46,5 @@

config.mail_sender = 'cforum@wwwtech.de'
config.faye_url = "//localhost:9090/faye"
config.internal_faye_url = 'http://localhost:9090/faye'
end

0 comments on commit 2029a00

Please sign in to comment.