Private Pub at Heroku | Rails 3

I'm having trouble understanding which port uses private_pub gem on heroku. Everything works locally, and I can launch an additional dyno on heroics. I believe there should be a way to set this dynamically.

My profile

pubsub: bundle exec rackup private_pub.ru -s thin -E production -p 9292

private_pub.yml

production:
    server: "http://myapp.herokuapp.com:9292/faye"

Note that setting the port to $ PORT in my Procfile will automatically assign a port, but how can I refer to private_pub.yml?

+2
source share
1 answer

You do not need to specify your port. My looks like this:

production:
  server: "http://mm-faye-pp.herokuapp.com/faye"

Make sure you go through your secret_token and make sure your faye application runs on a completely different dinodera or create a new heroku application just for your fairies, just like me.

+2
source

All Articles