0.0.1 • Published 12 years ago
send-film v0.0.1
send-film
Delivers a nightly email with a movie you can watch.
Usage
heroku create
heroku addons:add scheduler:standard
heroku addons:add sendgrid:starter
heroku config:set TO=you@youremail.com
git push heroku masterLastly, setup a recurring task each morning to send you the email. Use heroku scheduler for this. Add the job to look like this:
| Task | Dyno Size | Frequency |
|---|---|---|
| node ./task.js | 1x | Daily |
Dev Setup
touch .envPlace the following in your .env file:
SENDGRID_USERNAME=sendgrid_username
SENDGRID_PASSWORD=sendgrid_password
TO=your@email.comNow you can run:
node ./task.js0.0.1
12 years ago