Skip to content

Application for posting every single frame of a film, one frame per minute.

Notifications You must be signed in to change notification settings

matyus/frames-by-frame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Dependencies

Getting started

Install the application

bundle install

Films

The video file should not be committed, it should probably live in public/ or outside the app completely. Just make sure you adjust the file paths in lib/tasks/tweet.rake

Snapshots

The thumbnails are created in tmp/ and then deleted after they are tweeted.

Seed the database

Use the db/seeds.rb file to setup your first film.

Development

bundle exec rake db:seed

Production

RAILS_ENV=production bundle exec rake db:see

Twitter API

Open the credentials file, Rails will create it for you if it doesn't exist:

EDITOR="vim" bin/rails credentials:edit

Then add your keys:

twitter_001_consumer_key: <consumer key>
twitter_001_consumer_key_secret: <consumer key secret>
twitter_001_access_token: <access token>
twitter_001_access_token_secret: <access token secret>

Initialize the Cron

I had trouble here and I'm not sure whether this matters or not (it adds a bunch of stuff to the top of the cron file that helps cron use the right version of Ruby, etc.).

rvm cron setup

This will schedule the task to run every minute, as per config/schedule.rb

whenever --update-crontab

This will kick off the crontab, you can verify it by running crontab -e

About

Application for posting every single frame of a film, one frame per minute.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published