Skip to content

Joseph huang local environments#76

Open
huangjoseph45 wants to merge 8 commits intomainfrom
JosephHuangLocalEnvironments
Open

Joseph huang local environments#76
huangjoseph45 wants to merge 8 commits intomainfrom
JosephHuangLocalEnvironments

Conversation

@huangjoseph45
Copy link
Copy Markdown
Contributor

Adjusted dockercompose to run mongodb + localstack

added dev env to automatically use local dbs

adjused docker compose to override .env with .env.development if exists

@huangjoseph45 huangjoseph45 requested review from SreeDan and ryanlau and removed request for ryanlau January 18, 2026 21:10
Comment thread cloud_webserver_v2/internal/s3/s3.go Outdated
// Create an aws s3 service client
client := s3.NewFromConfig(cfg, func(o *s3.Options) {
o.BaseEndpoint = aws.String(endpoint)
o.UsePathStyle = os.Getenv("ENV") == "DEVELOPMENT"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make DEVELOPMENT a const string you just use here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example:

...
const DevelopmentEnv = "DEVELOPMENT" // At the top of the file under the imports
...
o.UsePathStyle = os.Getenv("ENV") == DevelopmentEnv

Putting this const in this file isn't the greatest but I think it's fine until we have a better way to organize our env variables

@huangjoseph45 huangjoseph45 force-pushed the JosephHuangLocalEnvironments branch from bdec035 to 684a632 Compare February 16, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants