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

IaC Fixes, Part 5 #33

Merged
merged 5 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
};