Skip to content

Conversation

@Foxite
Copy link

@Foxite Foxite commented Jul 11, 2023

  • Reads DB_NAME, DB_HOST, and DB_PORT from environment variables, uses current defaults if they're not specified.
  • Catch and log a few errors I encountered while trying to get this running.

@Foxite
Copy link
Author

Foxite commented Jul 11, 2023

My motivation for this, by the way, is that it allows me to use the postgres docker image with its auto-configuration of a single database, instead of manually creating a database. This is also required if you want to move the database to a different server (which, for a bot in this many servers, might be very desirable).

It also is extremely useful if you want to dockerize this app, which is exactly what I'm going to do next 😜

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