Skip to content

Commit

Permalink
chore: add load env script and .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
skgndi12 committed Oct 19, 2023
1 parent 8560d53 commit 9730f09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DATABASE_URL=postgresql://mrc-client:Client123!@localhost:5432/mrc
POSTGRESQL_PASSWORD=Client123!
6 changes: 6 additions & 0 deletions api/scripts/load_dotenv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

if [ -f .env ]
then
export $(cat .env | xargs)
fi

0 comments on commit 9730f09

Please sign in to comment.