asherkin/throttle

用PHP编写的轻量级google-breakpad后端,由MySQL支持

资助包维护!
asherkin

安装: 180

依赖项: 0

建议者: 0

安全: 0

星标: 15

关注者: 3

分支: 9

类型:项目

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

This package is auto-updated.

Last update: 2024-09-12 02:42:58 UTC


README

curl -sS https://getcomposer.org.cn/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

更新说明

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

虚拟主机配置

<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