Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to run as a rake task without daemonizing? #12

Open
danhixon opened this issue Aug 21, 2013 · 4 comments
Open

Is there any way to run as a rake task without daemonizing? #12

danhixon opened this issue Aug 21, 2013 · 4 comments

Comments

@danhixon
Copy link

This may be an edge case but running this on heroku costs $40/month and I really don't need instantaneous delivery from my staging environment. I'd like to run it as a scheduled task instead. It'd just check for any unsent messages and send them then exit. Is that possible?

@courtsimas
Copy link

+1

@courtsimas
Copy link

on heroku it seems tricky without the extra worker... maybe try a scheduler that runs something like bundle exec push staging -f (or whatever env)... i'm going to try this soon.

@tompesman
Copy link
Owner

Yes, this would be a nice feature. Right now it is not possible.

@tompesman
Copy link
Owner

Can you please try this feature branch?

gem 'push-core', github: 'tompesman/push-core', branch: 'feature/single_run'
gem 'push-apns', github: 'tompesman/push-apns', branch: 'feature/single_run'
gem 'push-c2dm', github: 'tompesman/push-c2dm', branch: 'feature/single_run'
gem 'push-gcm', github: 'tompesman/push-gcm', branch: 'feature/single_run'

Documentation is right here: https://github.com/tompesman/push-core/tree/feature/single_run#embedding-and-single-run

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants