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

francoisfaubert/gosucrank.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dynamic website of Starcraft player CranK

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published