Skip to content

Commit

Permalink
format env var printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratchet7x5 committed Dec 12, 2024
1 parent 61e16b4 commit b9b9f73
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,28 @@ const port = Number.parseInt(process.env.PORT || "3000");
// Specify the host parameter as '0.0.0.0' to listen on all network interfaces
app.listen(port, "0.0.0.0", () => {
console.log(`Backend is now listening on port :${port}`);
console.log(`Backend en vars : ${process.env.NODE_ENV}
${process.env.PORT},
${process.env.DATABASE_URL},
${process.env.DATABASE_HOST},
${process.env.DATABASE_PORT},
${process.env.DATABASE_USERNAME},
${process.env.DATABASE_PASSWORD},
${process.env.DATABASE_DB},
${process.env.DOMAIN_API},
${process.env.DOMAIN_FRONTEND},
${process.env.DOMAIN_STRAPI},
${process.env.DOMAIN_SUPERTOKENS},
${process.env.DOMAIN_DB},
${process.env.SUPERTOKENS_PORT},
${process.env.STRIPE_SECRET_KEY},
${process.env.STRIPE_WEBHOOK_ENDPOINT},
${process.env.GOOGLE_CLIENT_ID},
${process.env.GOOGLE_CLIENT_SECRET},
${process.env.SUPERTOKENS_API_KEY},
${process.env.SMTP_HOST},
${process.env.SMTP_PORT},
${process.env.SMTP_USER},
${process.env.SMTP_PASS}`);
console.log(`Backend en vars :
NODE_ENV=${process.env.NODE_ENV}
NODE_ENV=${process.env.PORT},
DATABASE_URL=${process.env.DATABASE_URL},
DATABASE_HOST=${process.env.DATABASE_HOST},
DATABASE_PORT=${process.env.DATABASE_PORT},
DATABASE_USERNAME=${process.env.DATABASE_USERNAME},
DATABASE_PASSWORD=${process.env.DATABASE_PASSWORD},
DATABASE_DB=${process.env.DATABASE_DB},
DOMAIN_API=${process.env.DOMAIN_API},
DOMAIN_FRONTEND=${process.env.DOMAIN_FRONTEND},
DOMAIN_STRAPI=${process.env.DOMAIN_STRAPI},
DOMAIN_SUPERTOKENS=${process.env.DOMAIN_SUPERTOKENS},
DOMAIN_DB=${process.env.DOMAIN_DB},
SUPERTOKENS_PORT=${process.env.SUPERTOKENS_PORT},
STRIPE_SECRET_KEY=${process.env.STRIPE_SECRET_KEY},
STRIPE_WEBHOOK_ENDPOINT=${process.env.STRIPE_WEBHOOK_ENDPOINT},
GOOGLE_CLIENT_ID=${process.env.GOOGLE_CLIENT_ID},
GOOGLE_CLIENT_SECRET=${process.env.GOOGLE_CLIENT_SECRET},
SUPERTOKENS_API_KEY=${process.env.SUPERTOKENS_API_KEY},
SMTP_HOST=${process.env.SMTP_HOST},
SMTP_PORT=${process.env.SMTP_PORT},
SMTP_USER=${process.env.SMTP_USER},
SMTP_PASS=${process.env.SMTP_PASS}`);
});

0 comments on commit b9b9f73

Please sign in to comment.