Details
Create a keyserver/.env file, eg.:
COMM_MYSQL_DATABASE=commdev COMM_MYSQL_USER=commdev COMM_MYSQL_PASSWORD=pass
And then run the Docker image: cd keyserver && docker-compose down -v && docker-compose up --build
It should successfully connect to MySQL and start all of its threads. At this point (for the first time) Node should stop crash looping.
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
keyserver/src/database/migrations.js | ||
---|---|---|
128 | It might be a good idea to explain what this magic number means |
keyserver/src/database/migrations.js | ||
---|---|---|
123–128 | Yeah, agree. Based on a quick Google search it looks like 1146 ~= MySQL error code for table doesn't exist. One option would be to leave a comment explaining that. Alternatively, might be good to define something like const MYSQL_TABLE_DOESNT_EXIST_ERROR_CODE = 1466 somewhere in the file so the name is "self-documenting" and comments can be avoided. Can name the constant anything, but would probably be good to name it in a way that it's clear the error code is "MySQL-specific" since "one day" it might change to MariaDB or Postgres or whatever? |