Skip to content

Simple video database that harvests and connects data from YouTube, Vortex and other sources.

Notifications You must be signed in to change notification settings

scriptotek/blekkio

Repository files navigation

Blekkio

Join the chat at https://gitter.im/scriptotek/blekkio

Simple video database that harvests and connects data from YouTube, Vortex and other sources.

Updates https://ub.uio.no/live

Task scheduler

To activate the task scheduler, add this to /etc/crontab:

  *  *  *  *  * apache     php /path/to/blekkio/artisan schedule:run 1>> /dev/null 2>&1

Task queue

To activate the queue worker, set QUEUE_DRIVER=database in .env and add a supervisor configuration file /etc/supervisord.d/blekkio.ini:

[program:blekkio]
process_name=%(program_name)s_%(process_num)02d
command=php /path/to/blekkio/artisan queue:work database --sleep=3 --tries=3
autostart=true
autorestart=true
user=apache
numprocs=1
redirect_stderr=true
stdout_logfile=/path/to/blekkio/storage/logs/worker.log

Then

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start blekkio:*

Local development

Requirements: PHP + Composer, Node + NPM.

Setup:

git clone https://github.com/scriptotek/blekkio.git
cd blekkio
composer install
npm install
npm run dev
cp .env.example .env

Note: php-saml still depends on mcrypt as of 2017-05-09. To avoid having to install it, run

composer install --ignore-platform-reqs

This is ok since we don't use encrypted SAML messages. See php-saml#84.

Add credentials (SQL, WebDAV, Google APIs) to .env. Local maintainers, see \\kant\ub-felles\scriptotek\blekkio\README.txt.

Add to /etc/hosts:

127.0.0.1  blekkio.dev

Start dev server:

php artisan serve --host=blekkio.dev --port=8000

About

Simple video database that harvests and connects data from YouTube, Vortex and other sources.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages