GithubHelp home page GithubHelp logo

can't run this on Heroku about rapns HOT 5 CLOSED

ileitch avatar ileitch commented on September 17, 2024
can't run this on Heroku

from rapns.

Comments (5)

ileitch avatar ileitch commented on September 17, 2024

You say pid_file is blank on your rapns.yml. Can you please confirm this, from the error given I can see it is still set to 'tmp/pids/rapns.pid'.

from rapns.

chrischenyc avatar chrischenyc commented on September 17, 2024

Yes, I didn't change anything in the rapns.yml file, here's what's in the file:

development:
certificate: development.pem
certificate_password:

push:
host: gateway.sandbox.push.apple.com
port: 2195
poll: 2
connections: 3

feedback:
host: feedback.sandbox.push.apple.com
port: 2196
poll: 60

production:
certificate: production.pem
certificate_password:
airbrake_notify: true
pid_file: tmp/pids/rapns.pid

push:
host: gateway.push.apple.com
port: 2195
poll: 2
connections: 3

feedback:
host: feedback.push.apple.com
port: 2196
poll: 60

from rapns.

blakewatters avatar blakewatters commented on September 17, 2024

This will execute fine on Heroku -- been running fine for months. You need to remove the pid_file: configuration from your YAML

from rapns.

ileitch avatar ileitch commented on September 17, 2024

I'd like to improve the experience of using rapns on Heroku. I've never used it myself so I'm not sure what may help.

  • Does Heroku not allow filesystem writes at all? Or is there a writeable directory somewhere?
  • Is it even possible to use the PID (with God, monit, etc.) file if we were able to write it?
  • Is there a way for rapns to detect if it is being run in Heroku?

from rapns.

blakewatters avatar blakewatters commented on September 17, 2024

Ian -

The best thing for you to do is just to create a Heroku app under the Cedar
stack and execute it yourself (it's free). In my experience, all you need
to do to get a first class Heroku experience is to remove the pid_file line
from the config file and run it from the Procfile like so:

rapns: bundle exec rapns $RACK_ENV -f

The log output will be picked up from stout and aggregated and RACK_ENV
will be configured as appropriate for the running instance. In face, we
should probably just start with a wiki page instructing folks to take those
very steps.

  • Blake

On Thu, Dec 22, 2011 at 10:41 AM, Ian Leitch <
[email protected]

wrote:

I'd like to improve the experience of using rapns on Heroku. I've never
used it myself so I'm not sure what may help.

  • Does Heroku not allow filesystem writes at all? Or is there a writeable
    directory somewhere?
  • Is it even possible to use the PID (with God, monit, etc.) file if we
    were able to write it?
  • Is there a way for rapns to detect if it is being run in Heroku?

Reply to this email directly or view it on GitHub:
#22 (comment)

from rapns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.