Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos committed Nov 7, 2023
1 parent 1f1c813 commit d2bb67e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pnpm i",
"containerEnv": {
"MYSQL_HOST": "mysql"
},

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
Expand Down
2 changes: 1 addition & 1 deletion test/TestUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class TestUtil {

static getMySqlConfig() {
return {
host: process.env.MYSQL_HOST || 'mysql',
host: process.env.MYSQL_HOST || 'localhost',
port: process.env.MYSQL_PORT || 3306,
user: process.env.MYSQL_USER || 'root',
password: process.env.MYSQL_PASSWORD || '',
Expand Down

0 comments on commit d2bb67e

Please sign in to comment.