Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix: debug mongo connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Oct 9, 2022
1 parent 0a9211f commit f949a36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/database/connectDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { errorHandler } from '../utils/errorHandler';
export const connectDb = async (bot: ExtendedClient) => {
// DigitalOcean Apps has cert as environment variable but Mongo needs a file path
// Write Mongo cert file to disk
console.log('DB string ...', process.env.API_MONGO_CONNECTION_STRING);
console.log('DB CERT ...', process.env.CA_CERT);
fs.writeFileSync('cert.pem', process.env.CA_CERT!);

Expand Down

0 comments on commit f949a36

Please sign in to comment.