#48 - heroku deployment #70

Merged
Baakoma merged 34 commits from #48-heroku-deployment into main 2022-03-15 14:46:42 +01:00
4 changed files with 3 additions and 8 deletions
Showing only changes of commit 7aa9a52f8c - Show all commits

1
.gitignore vendored
View File

@@ -15,5 +15,6 @@ Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
google-credentials.json
.idea/
.composer

View File

@@ -1 +0,0 @@
echo ${GOOGLE_CREDENTIALS} > /storage/app/google-calendar/service-account-credentials.json

View File

@@ -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"),
];
krzysztofrewak commented 2022-03-15 14:21:57 +01:00 (Migrated from github.com)
Review

I would pu it into storage directory.

I would pu it into storage directory.
Baakoma commented 2022-03-15 14:26:43 +01:00 (Migrated from github.com)
Review

Heroku buildpack creates this file in root directory and we cannot change this location.

Heroku buildpack creates this file in root directory and we cannot change this location.
krzysztofrewak commented 2022-03-15 14:29:43 +01:00 (Migrated from github.com)
Review

Okok.

Okok.

View File

@@ -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)