Copy .env.sample
to .env
, fill it:
API_KEY=POCKET_CONSUMER_KEY
ACCESS_TOKEN=POCKET_USER_ACCESS_TOKEN
MAIL_ADDRESS=GMAIL_EMAIL
MAIL_PASSWORD=GMAIL_PASSWORD
You should go to Pocket Developer API to get API_KEY
.
You can use pocket-ruby to get ACCESS_TOKEN
.
If your gmail account has set with two-factory, you should go to to get the application password.
Go to Heroku Dashboard, in your heroku application setting page, config variables section, add variables with content of .env
.
Set Heroku scheduler.
Set job command to rake run