Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from imyourmanzi/iac-fixes-5
Browse files Browse the repository at this point in the history
IaC Fixes, Part 5
  • Loading branch information
imyourmanzi committed May 1, 2023
2 parents 80f9087 + 468565f commit 5bb8f9c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ on:
- 'workspace.json'

jobs:
check:
name: Check
npm:
name: 'npm Package'
uses: imyourmanzi/GitHubWorkflows/.github/workflows/check-version-npm.yml@main
7 changes: 6 additions & 1 deletion infrastructure/cloud_run.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "google_cloud_run_v2_service" "main" {
period_seconds = 30
failure_threshold = 3
http_get {
path = "/healthcheck"
path = "/api/healthcheck"
}
}

Expand All @@ -45,6 +45,11 @@ resource "google_cloud_run_v2_service" "main" {
value = "b80440eadf0a4f989bba93e5b4ff2fc5"
}

env {
name = "SPOTIFY_REDIRECT_URI"
value = "https://playlists.mattmanzi.com/callback"
}

ports {
container_port = 8080
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spotify-playlist-manager",
"version": "0.1.8",
"version": "0.1.9",
"license": "MIT",
"scripts": {},
"private": true,
Expand Down
9 changes: 8 additions & 1 deletion packages/server/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { environmentBase, EnvironmentConfig } from './environment.base';

const { SPOTIFY_REDIRECT_URI: redirectURI } = process.env;

if (!redirectURI) {
console.error('Missing redirect URI! Exiting...');
process.exit(1);
}

export const environment: EnvironmentConfig = {
...environmentBase,
production: true,
redirectURI: 'TODO: set the prod redirect URI',
redirectURI,
logConfig: true,
host: '0.0.0.0',
};

0 comments on commit 5bb8f9c

Please sign in to comment.