Skip to content

Commit a25b2c4

Browse files
committed
Fix the template config file
Lost commit from #51 Fixes #167
1 parent f72aec5 commit a25b2c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Sentry/SentryLaravel/config.php renamed to config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'dsn' => env('SENTRY_LARAVEL_DSN'),
55

66
// capture release as git sha
7-
// 'release' => trim(exec('git log --pretty="%h" -n1 HEAD')),
7+
// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
88

99
// Capture bindings on SQL queries
1010
'breadcrumbs.sql_bindings' => true,

src/Sentry/SentryLaravel/SentryLaravelServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function boot()
2323
{
2424
// Publish the configuration file
2525
$this->publishes(array(
26-
__DIR__ . '/config.php' => config_path(static::$abstract . '.php'),
26+
__DIR__ . '/../../../config/sentry.php' => config_path(static::$abstract . '.php'),
2727
), 'config');
2828

2929
$this->bindEvents($this->app);
@@ -69,7 +69,7 @@ protected function bindEvents($app)
6969
*/
7070
public function register()
7171
{
72-
$this->mergeConfigFrom(__DIR__ . '/config.php', static::$abstract);
72+
$this->mergeConfigFrom(__DIR__ . '/../../../config/sentry.php', static::$abstract);
7373

7474
$this->app->singleton(static::$abstract, function ($app) {
7575
$user_config = $app['config'][static::$abstract];

0 commit comments

Comments
 (0)