-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
== Pushbroom | ||
# Pushbroom | ||
|
||
It helps keep your Gmail tidy. I have a live version up at | ||
http://pushbroom.heroku.com. | ||
|
||
## Set It Up | ||
|
||
If you rather host one yourself, clone this sucker then: | ||
|
||
Make the file config/app_env.rb with something like this: | ||
|
||
ENV['session_secret'] = 'some really long bullshit' | ||
ENV['consumer_key'] = 'anonymous' | ||
ENV['consumer_secret'] = 'anonymous' | ||
|
||
You can use `rake secret` to get some really long bullshit. Using 'anonymous' will get you up and running, I'll leave it up to you to register your domain with Google and get specific credentials from them. | ||
|
||
Last thing you need to do is setup a cron or scheduled task to run `rake pushbroom:full_sweep`. Mine is setup to run once a day every morning. | ||
|
||
## Heroku | ||
|
||
If you are going to use Heroku, instead of using the config/app_env.rb you will just use the `heroku config:add`. It will look something like this `heroku config:add session_secret=someReallyLongBullshit consumer_key=anonymous consumer_secret = 'anonymous'`. If you already pushed your clone up Heroku will tell you that your app is restarting and you should be good to go :) | ||
|
||
Pushbroom used to use the cron addon from Heroku, but it appears as though they are getting rid of it. They now have the Heroku Scheduler. Add this through the dashboard on their web site. Set the task to `rake pushbroom:full_sweep` then choose the time and interval at which you would like it to run. | ||
|
||
## TODO | ||
|
||
Have it run 2 or 3 Unicorn processes on one dyno so that on an initial delete of lots of emails doesn't keep other simpler requests waiting behind it. |