Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix multiple typos in dockerfile #85

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

haydenrou
Copy link
Contributor

No description provided.

@haydenrou haydenrou marked this pull request as draft September 2, 2024 14:59
Use the env variable URL when connecting to mongodb
Run `go mod tidy` with a better version of mongo for go
@haydenrou haydenrou marked this pull request as ready for review September 2, 2024 15:53

"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
)

func Initialize(ctx context.Context) (*mongo.Client, error) {
clientOpts := options.Client().ApplyURI("mongodb://root:example@localhost:27017")
mongoURI := os.Getenv("MONGO_URL")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This may break local development unless that variable is set. We likely want to write some docs to testing / running the application locally using docker. I created this issue for that: #86

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.

1 participant