This project uses :
- Ruby on Rails
- Standard rails SASS
- External crons scripts
In developement, the variables must be in a file in config/local_env.yml
TWITTER_CONSUMER_KEY: token
TWITTER_CONSUMER_SECRET: token
TWITTER_ACCESS_TOKEN: token
TWITTER_ACCESS_SECRET: token
Just running rails server
after migrating the database and installing the app bundle will launch everything needed to run the website. It runs locally on Sqlite.
To populate the DB with data, run the cron :
rake cron
This is explecitely set up to run on Heroku on 1 dyno and Heroku Postgres.
The following variables need to be set on Heroku when first publishing the website:
heroku config:add TWITTER_CONSUMER_KEY=token
heroku config:add TWITTER_CONSUMER_SECRET=token
heroku config:add TWITTER_ACCESS_TOKEN=token
heroku config:add TWITTER_ACCESS_SECRET=token
heroku config:add Youtube_key=key
After first deploy, one must create the tables manually.
heroku run rake db:migrate
A Heroku Scheduler rule must be set to call rake cron
every 10 minutes.
The Heroku app will update automatically with the contents of the master branch. Be careful when merging.