Commit b8e475e
feat: add direnv and improve devcontainer environment setup (#451)
* fix: add missing simpleaccounts_db env vars and update documentation
Issues fixed:
- Backend failed to start due to missing SIMPLEACCOUNTS_DB_* environment variables
- post-start.sh used wrong hostnames (localhost vs db/redis)
- Documentation had outdated npm commands (npm run dev vs npm start)
Changes:
- Add SIMPLEACCOUNTS_DB_HOST, SIMPLEACCOUNTS_DB_PORT, etc. to .env.example
- Add same env vars to Coder template.tf for seamless Coder support
- Update post-start.sh to auto-detect Coder vs DevContainer environment
- Fix npm commands in CLAUDE.md, AGENTS.md, and other docs
- Update README.md architecture diagram to show localhost networking
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: handle java_tool_options in java version detection scripts
The JAVA_TOOL_OPTIONS environment variable outputs a message that was
being captured by `head -1`, causing Java version detection to fail
even when Java 21+ was properly installed.
Fixed by using `grep -E '(openjdk|java) version'` to filter for the
actual version line before extracting the version number.
Files fixed:
- apps/backend/run.sh
- apps/backend/check_java.sh
- scripts/setup-mcp-sonarqube.sh
- scripts/run-sonarqube-mcp.sh
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat: add direnv for automatic .env loading in devcontainer
- Add direnv to Dockerfile apt-get install
- Configure direnv hook in bashrc via post-create.sh
- Auto-create .envrc that loads all .env files
- Add .envrc to .gitignore
This enables automatic environment variable loading when entering
the workspace directory, loading from .devcontainer/.env and any
local override files.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: update sonarqube url and package-lock
- Update SONARQUBE_URL to sonarqube.datainn.io in .mcp.json
- Update package-lock.json
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Developer <developer@simpleaccounts.io>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 5372ce4 commit b8e475e
5 files changed
Lines changed: 64 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
149 | 195 | | |
150 | 196 | | |
151 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments