Try stuff on staging

pull/554/head
Rick Carlino 2017-12-06 08:51:43 -06:00
parent 694bcddce3
commit c5267b0ba8
3 changed files with 16 additions and 4 deletions

View File

@ -2,7 +2,7 @@
rails: rails s -e development -p 3000 -b 0.0.0.0
webpack: ./node_modules/.bin/webpack-dev-server --config config/webpack.config.js
worker: rake jobs:work
# mqtt: rails mqtt:start
# logger: rails r lib/log_service.rb
# UNCOMMENT THIS LINE IF YOU ARE DOING MOBILE TESTING:
# Get started with `npm install weinre -g`

View File

@ -10,11 +10,17 @@ module Transport
@connection ||= Bunny.new(AMQP_URL, OPTS).start
end
def self.log_channel
@log_channel ||= self
.connection
.create_channel
end
def self.topic
@topic ||= self
.connection
.create_channel
.topic("amq.topic", auto_delete: true)
.connection
.create_channel
.topic("amq.topic", auto_delete: true)
end
def self.amqp_send(message, id, channel)

View File

@ -0,0 +1,6 @@
binding.pry
loop do
puts "Ding!"
sleep 5
end