Comments (5)
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.
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.
This will execute fine on Heroku -- been running fine for months. You need to remove the pid_file: configuration from your YAML
from rapns.
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.
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)
- Update at the end HOT 2
- Rapns Worker stalls and not setting notifications as delivered HOT 8
- Multiple databases support HOT 2
- Trying Rapns with Safari Push HOT 10
- NoMethodError raised when GCM post responds with 500
- add notification table HOT 4
- Rapns daemon process get killed HOT 4
- [ERROR] NoMethodError, undefined method `to_binary' for Rapns::Notification HOT 4
- GCM returns an error for messages with Spanish characters
- new release? HOT 5
- fatal: deadlock detected HOT 1
- fatal: deadlock detected
- ActiveRecord::ConnectionTimeoutError HOT 3
- NameError, uninitialized constant Rapns::Daemon::Apn HOT 3
- Notification received on the phone but the rapns_notifications database still list the notification as not delivered
- apns slow HOT 2
- Testing github-issues-import.
- Best practise for maintaining rapns_notifications table.
- Certificate has been revoked (Rails Console & Controller both) HOT 1
- @app should be @app.name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rapns.