Skip to content
This repository has been archived by the owner on Jan 30, 2022. It is now read-only.

Latest commit

 

History

History
56 lines (37 loc) · 1.25 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.25 KB

README

Techonology

This project uses :

  • Ruby on Rails
  • Standard rails SASS
  • External crons scripts

Development

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

Deploying

This is explecitely set up to run on Heroku on 1 dyno and Heroku Postgres.

First setup

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.

Further updates

The Heroku app will update automatically with the contents of the master branch. Be careful when merging.