kwicherbelliaken / bad-reviews-make-good-movies

0 stars 0 forks source link

[FEATURE]: ensure production domain works #112

Closed slackermorris closed 2 months ago

slackermorris commented 4 months ago

I am having an issue.

Screen Shot 2024-03-22 at 11 01 43 AM
slackermorris commented 4 months ago

Remember, deployment to production worked from the CLI:

image

I will check the deployment logs in Github Actions.

slackermorris commented 4 months ago

I mean this doesn't look correct:

Screen Shot 2024-03-22 at 11 04 09 AM

All my UI code is referring to the staging API when in fact the production url has a different alias.

api-production.badreviewsmakegoodmovies.com
slackermorris commented 4 months ago

The question is how to tell what stage/environment I am in.

slackermorris commented 4 months ago

It will pay to read this: https://arc.net/l/quote/eaowetpt

slackermorris commented 4 months ago

Alright just got to rinse and repeat.

Screen Shot 2024-03-22 at 11 13 17 AM
slackermorris commented 4 months ago

Nope. The above change had nothing to do with nothing, lol.

I guess I need to form a better mental model of how the website is being server.

slackermorris commented 4 months ago

I'll look at the recommended deployment docs from Astro's side of things:

slackermorris commented 4 months ago

I am having a look at the SST Console to determine what the issue is.

Screen Shot 2024-03-24 at 9 35 37 AM
slackermorris commented 4 months ago

Let's see what it logs out on development.

Local http://localhost:4321 returns / for the path:

Screen Shot 2024-03-24 at 9 40 05 AM

What should I do?

I need to determine where and why this code executes.

Maybe related? https://github.com/withastro/astro/issues/4190 I literally have the worst mental model w/r/t this whole side of things. Perhaps I am best clearing that up before going any further.

slackermorris commented 4 months ago

Hmm. Perhaps I missed something?

Screen Shot 2024-03-24 at 9 49 20 AM

I added this and redeployed to production. So, let's see.

Screen Shot 2024-03-24 at 9 54 53 AM
slackermorris commented 4 months ago

I need to read this at some point:

Screen Shot 2024-03-24 at 9 51 44 AM
slackermorris commented 4 months ago

Here are all my application code assets: https://ap-southeast-2.console.aws.amazon.com/s3/buckets/production-bad-reviews-make-g-sites3bucket2b2851f3-e7hiz9cmz07z?region=ap-southeast-2&bucketType=general&prefix=_astro/&showversions=false

slackermorris commented 4 months ago

Here are the CloudWatch logs for the problematic lambda: https://ap-southeast-2.console.aws.amazon.com/cloudwatch/home?region=ap-southeast-2#logsV2:log-groups/log-group/%2Faws%2Flambda%2Fproduction-bad-reviews-ma-siteServerFunction6DFA6F-M4nOH2mHWP5j

slackermorris commented 2 months ago

I have all my notes in Obsidian. The rub is: bumping to the most recent version of Astro seems to have solved the issue.