2

I'm having some trouble understanding which port the private_pub gem uses on heroku. Everything works locally, and I can start up the extra dyno on heroku. I figure there has to be a way to set this dynamically.

My Procfile

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 do I reference that in private_pub.yml?

Axel Sears
  • 85
  • 2
  • 6

1 Answers1

2

You don't need to specify your port. Mine looks like this:

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

Make sure you're passing in your secret_token and make sure your faye app is running on a completely different dyno or make a new heroku app just for your faye like I did.

Jches
  • 417
  • 1
  • 4
  • 23
  • It's running on a different dyno, started by the procfile- but referring to myapp.herokuapp.com/faye doesn't work. What do you think? I've been developing on Rails for around a year and a half, I may be missing something obvious. – Axel Sears Mar 08 '13 at 02:52