Download the code
git clone https://github.com/php-sentinel/bug-catcher.git
To get it working, follow these steps:
Download Composer dependencies
Make sure you have Composer installed and then run:
composer install
You may alternatively need to run php composer.phar install
, depending
on how you installed Composer.
Setup the database
# /env.local
APP_ENV=prod
DATABASE_URL=mysql://username:[email protected]:3306/database-name
Run migrate command for setup database
php bin/console doctrine:migrations:migrate
build javascripts
You need to have downloaded and installed nodejs and yarn
yarn install
yarn build
Create first admin user
php bin/console app:create-user <email> <password>
Start the built-in web server
You can use Nginx or Apache, but the built-in web server works great:
php bin/console server:run
Now check out the site at http://localhost:8000
Setup cron for collection status codes
# /etc/crontab
* * * * * www-data php /var/www/bug-catcher/bin/console app:ping-collector > /dev/null 2>&1
#optimize records by grouping them by 5 minutes older than 1 day
0 * * * * www-data php /var/www/bug-catcher/bin/console app:record-optimizer --past=1 --precision=5
#optimize records by grouping them by 60 minutes older than 7 days
0 0 * * * www-data php /var/www/bug-catcher/bin/console app:record-optimizer --past=7 --precision=60
Setup your Symfony applications
See package php-sentinel/bug-catcher-reporter-bundle
Have fun!
Setup plain PHP applications
See package php-sentinel/bug-catcher-curl-reporter
If you have suggestions or questions, please feel free to open an issue on this repository.