asherkin/throttle

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

Installs: 66

Dependents: 0

Suggesters: 0

Stars: 4

Watchers: 2

Forks: 1

Type:project

dev-master 2019-05-22 23: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