-
Requirements: PHP, MySQL, Redis
-
Create a database called
hackathonor change the fileconfig.ini -
Ensure the folder
cacheis writable -
In the repo, run
./script_phinx_database.sh
This will create the database tables. See http://docs.phinx.org/en/latest/migrations.html for more info.
-
In the repo, run
php scripts/scrape_packages.php- This will populate the packages table. -
In a separate window, run
./script_resque.sh- Keep this Window open, as it will run the resque/redis process. -
Back to the first window, run
php scripts/scrape_channels.php- This will create a resque job, to scrape the channels -
Back to the first window, run
php scripts/scrape_programs.php- This will create a resque job, to scrape the programs for today -
You can watch the action by tailing
cache/logfile.log -
Whenever adding a new class, you need to run composer install and stop/start
script_resque.sh.
IF you having issues, comment out these lines in hackathon/vendor/tohir/database/src/db.php
Wherever it says: $this->db->query("SET NAMES 'UTF8';", array(), TRUE);