Hello,
Thanks for the update and thanks for keep going. I haven't
forgotten the stats - will try to add the missing FootballStatsReader.
To add football data on a heroku install you have at least two
options (a third easier one with zip archives is in planning):
Option 1) Never tried it put was successful if you check older
postings - e.g. install the data into your local postgress database
and than use pg dump or something and than load the copy into your
remote heroku postgres db.
Option 2) Add the datasets you want to load into your Gemfile -
that's how you get them onto the remote heroku machine. Example (see
the sport.db.admin Gemfile):
gem 'worlddb-data', '9.9.9', git: '
https://github.com/openmundi/world.db.git'
gem 'footballdb-data-national-teams', '9.9.9', git:
'
https://github.com/openfootball/national-teams.git'
gem 'footballdb-data-world-cup', '9.9.9', git:
'
https://github.com/openfootball/world-cup.git'
and so on.
Now you just need to code a litte rake build script (again see the
sport.db.admin sample task in db/seeds.rb ) e.g.
SportDb.read_builtin
sportdb_setups = [
['fr-france', '2014-15'],
['de-deutschland', '2014-15'],
['en-england', '2014-15'],
]
sportdb_setups.each do |setup|
SportDb.read_setup( "setups/#{setup[1]}",
find_data_path_from_gemfile_gitref( setup[0]) )
end
and than after you push your app to heroku you can use, for example:
$ heroku run rake db:seed
or something. That's all. Good luck. Cheers.