bin/rapnd in rapnd-0.1.1 vs bin/rapnd in rapnd-0.1.2
- old
+ new
@@ -27,10 +27,14 @@
opts.on("--redis_port=OPTIONAL", "Redis port") do |port|
options[:redis_port] = port
end
opts.on("--environment=OPTIONAL", "Specify sandbox or production") do |env|
- options[:env] = env
+ if env == 'production'
+ options[:host] = 'gateway.push.apple.com'
+ else
+ options[:host] = 'gateway.sandbox.push.apple.com'
+ end
end
opts.on("--queue=OPTIONAL", "Name of the redis queue") do |queue|
options[:queue] = queue
end
\ No newline at end of file