In this post I am going to show how to setup private_pub server on heroku. Private Pub gem is a very nice solution for pushing real time data and it’s open-source . For using the private_pub gem we have to create two application on heroku. First one for our rails app and second one for private_pub server.
Folder structure for private_pub server application is like the below one
config ———–> private_pub.yml
script ————> rails
Note: bold represent folder and other represent file.
“private_pub.yml” and “private_pub.ru” are created by private_pub gem using rails g private_pub:install
Gemfile has following gems