asherkin/throttle

Lightweight google-breakpad back-end written in PHP and backed by MySQL

Fund package maintenance!
asherkin

Installs: 180

Dependents: 0

Suggesters: 0

Security: 0

Stars: 15

Watchers: 3

Forks: 9

Type:project

dev-master 2020-03-04 00:04 UTC

This package is auto-updated.

Last update: 2024-11-12 03:04:06 UTC


README

curl -sS https://getcomposer.org/installer | php
php composer.phar create-project --keep-vcs -s dev asherkin/throttle
cd throttle
cp app/config.base.php app/config.php
vim app/config.php
php app/console.php migrations:migrate
chmod -R a+w logs cache dumps symbols/public

Update Instructions

cd throttle
git pull
php ../composer.phar install
php app/console.php migrations:migrate
rm -rf cache/*

Virtual Host Configuration

<VirtualHost *:80>
    ServerName throttle.example.com
    DocumentRoot "/path/to/throttle/web"

    <Location />
        Options -MultiViews

        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [QSA,L]
    </Location>
</VirtualHost>

Cron

* * * * * root /var/www/throttle/app/console.php crash:clean > /dev/null; /var/www/throttle/app/console.php crash:process -l 250 -u > /dev/null
0 * * * * root /var/www/throttle/app/console.php user:update > /dev/null
15 */3 * * * root /var/www/throttle/app/console.php symbols:update > /dev/null
30 0 * * * root /var/www/throttle/app/console.php symbols:download > /dev/null
30 0 * * * root /var/www/throttle/app/console.php symbols:mozilla:download > /dev/null