Try stuff on staging
parent
694bcddce3
commit
c5267b0ba8
|
@ -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`
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
binding.pry
|
||||
|
||||
loop do
|
||||
puts "Ding!"
|
||||
sleep 5
|
||||
end
|
Loading…
Reference in New Issue