Skip to content

Commit

Permalink
TIM-55: Configure sentry for timetracker
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske authored and CybotTM committed Jan 3, 2022
1 parent f4fe988 commit 0784694
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/app/config/parameters.yml
/app/config/parameters.ini
/app/config/ldap_ou_team_mapping.yml
/app/config/sentry.yml
/app/logs/*.log
/app/cache/*
/app/build/
Expand Down
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ Setup - manual from from sources

If you want to adjust that later, edit ``app/config/parameters.yml``

Also copy ``app/config/sentry.yml.dist`` to ``app/config/sentry.yml``,
and fill the ``dsn`` key if necessary.

#. Make cache and log directory writable::

$ chmod -R og+w app/cache/ app/logs/
Expand Down Expand Up @@ -130,9 +133,9 @@ Setup - with prebuilt docker images
#. Create an empty folder
#. Put the provided docker-composer.yml from this git repo in it
#. Put the provided nginx configuration file from this repo into the above created folder
#. Put the provided app/config/parameters.yml.dist from this repo as paramters.yml into the above created folder
#. Put the provided ``app/config/parameters.yml.dist`` from this repo as ``parameters.yml`` into the above created folder, and ``sentry.yml.dist`` as ``sentry.yml``.
#. Check and adapt the copied confoguration files to your needs
#. Run docker-compose up -d
#. Run ``docker-compose up -d``


Trusted proxies
Expand Down
1 change: 1 addition & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function registerBundles()
new JMS\DiExtraBundle\JMSDiExtraBundle($this),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new Netresearch\TimeTrackerBundle\NetresearchTimeTrackerBundle(),
new Sentry\SentryBundle\SentryBundle(),
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
Expand Down
1 change: 1 addition & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: sentry.yml }

framework:
#esi: ~
Expand Down
7 changes: 7 additions & 0 deletions app/config/sentry.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sensio_framework_extra:
psr_message:
enabled: false
sentry:
dsn: ""
tracing:
enabled: false

0 comments on commit 0784694

Please sign in to comment.