docs: add dev containers config gotcha in README #479
Reference in New Issue
Block a user
Delete Branch "docs/improve-devcontainer-setup-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
This is a small README update for devs who choose to use dev containers to work on the project. When setting this up on my machine (Fedora Asahi Linux running on an M2 MacBook Air) via the dev containers CLI, I ran into an issue where the Rails server kept throwing a
could not connect to server: Cannot assign requested addresserror. The issue was that the.envfile that I copied from.env.examplewas trying to connect toDB_HOST=localhostwhen it needed to be pointed atDB_HOST=dbin the Docker Compose setup.This adds a sentence in the README to address this and it also adds a comment in
.env.examplenext to the relevant line.And as a side note, I'm very excited that you all have decided to open source this lovely project. I'm looking forward to keeping up with its developments and would love to contribute when I can.
Good idea, this is always a tricky thing to remember when setting up with Docker!