• Илья

    (@letraceursnork)


    Just one thing – it would be much more convenient if you could set up the variables inside admin-panel instead of editing wp-config file (especially in case when you don’t have one in your repository due to Docker-based installation)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Alex

    (@stayallive)

    I agree that that would be nicer, however it was developed this way to allow you to load Sentry even before any other significant piece of code runs, making this plugin dependent on a working database connection defeats that a little since it won’t be able to report database errors in the case it’s unable to retrieve it’s configuration from there. Hope this makes the decision a bit more clear.

    However, I am curious about your Docker setup, are you using some open source base image I can take a look at? Because I’m sure there is a way to make it work 🤘

    Thread Starter Илья

    (@letraceursnork)

    I am curious about your Docker setup

    Alex
    FROM composer:2.5.3 as composer
    FROM wordpress:6.1.1-php8.1-apache

    And I’m installing Sentry via composer as WPackagist package (composer require wpackagist-plugin/wp-sentry-integration)

    Plugin Author Alex

    (@stayallive)

    From reading the docs of the wordpress base image you can do this:

        environment:
          WORDPRESS_CONFIG_EXTRA: |
            define( 'WP_SENTRY_PHP_DSN', 'https://...' );

    I found this under the “How to use this image” section in https://hub.docker.com/_/wordpress.

    Hope that helps.

    Thread Starter Илья

    (@letraceursnork)

    Well, that’s exactly what I did, actually)

    But if you need to reconnect sentry to another DSN – you need to either change your env variables or build a new release. That’s the only reason I rated 4 instead of 5. Sorry

    Plugin Author Alex

    (@stayallive)

    No worries, that is fair 🙂 Good that we figured out it IS possible but it is inconvienent. Thanks for taking the time to clarify!

    Thread Starter Илья

    (@letraceursnork)

    Would you please add that info to README section or plugin description?)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Great plugin to integrate Sentry to your WordPress’ is closed to new replies.