From 9730f0960edd0b782108f51b993512e5418a48ee Mon Sep 17 00:00:00 2001 From: skgndi12 Date: Fri, 20 Oct 2023 00:21:50 +0900 Subject: [PATCH] chore: add load env script and .env file --- api/.env | 2 ++ api/scripts/load_dotenv.sh | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 api/.env create mode 100644 api/scripts/load_dotenv.sh diff --git a/api/.env b/api/.env new file mode 100644 index 000000000..00b1f0e55 --- /dev/null +++ b/api/.env @@ -0,0 +1,2 @@ +DATABASE_URL=postgresql://mrc-client:Client123!@localhost:5432/mrc +POSTGRESQL_PASSWORD=Client123! \ No newline at end of file diff --git a/api/scripts/load_dotenv.sh b/api/scripts/load_dotenv.sh new file mode 100644 index 000000000..5769e3928 --- /dev/null +++ b/api/scripts/load_dotenv.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -f .env ] +then + export $(cat .env | xargs) +fi \ No newline at end of file