From 7aa9a52f8c94b07f6c651e1409e73e6b6b95cded Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Tue, 8 Mar 2022 14:32:46 +0100 Subject: [PATCH] test --- .gitignore | 1 + .profile | 1 - config/google-calendar.php | 7 +------ readme.md | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 .profile diff --git a/.gitignore b/.gitignore index 63cf7ed..569e675 100644 --- a/.gitignore +++ b/.gitignore @@ -15,5 +15,6 @@ Homestead.json Homestead.yaml npm-debug.log yarn-error.log +google-credentials.json .idea/ .composer diff --git a/.profile b/.profile deleted file mode 100644 index 1a5622b..0000000 --- a/.profile +++ /dev/null @@ -1 +0,0 @@ -echo ${GOOGLE_CREDENTIALS} > /storage/app/google-calendar/service-account-credentials.json \ No newline at end of file diff --git a/config/google-calendar.php b/config/google-calendar.php index e50a33b..da66b8c 100644 --- a/config/google-calendar.php +++ b/config/google-calendar.php @@ -6,14 +6,9 @@ return [ "default_auth_profile" => env("GOOGLE_CALENDAR_AUTH_PROFILE", "service_account"), "auth_profiles" => [ "service_account" => [ - "credentials_json" => storage_path("app/google-calendar/service-account-credentials.json"), - ], - "oauth" => [ - "credentials_json" => storage_path("app/google-calendar/oauth-credentials.json"), - "token_json" => storage_path("app/google-calendar/oauth-token.json"), + "credentials_json" => base_path("google-credentials.json"), ], ], - "calendar_id" => env("GOOGLE_CALENDAR_ID"), "user_to_impersonate" => env("GOOGLE_CALENDAR_IMPERSONATE"), ]; diff --git a/readme.md b/readme.md index d25b8f7..f981e88 100644 --- a/readme.md +++ b/readme.md @@ -53,7 +53,7 @@ Directory structure little differs from a standard Laravel tree. We decided to r dcr node npm run dev -- place google credentials here: `/storage/app/google-calendar/service-account-credentials.json` ([how to obtain the credentials](https://github.com/spatie/laravel-google-calendar#how-to-obtain-the-credentials-to-communicate-with-google-calendar)) +- place google credentials here: `/google-credentials.json` ([how to obtain the credentials](https://github.com/spatie/laravel-google-calendar#how-to-obtain-the-credentials-to-communicate-with-google-calendar)) ### Available containers (local)