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 25, 2023
1 parent 226be7e commit 89e5b1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DATABASE_URL='postgresql://mrc-client:Client123!@localhost:5432/mrc'
POSTGRESQL_PORT=5435
POSTGRESQL_PASSWORD='Client123!'
POSTGRESQL_POSTGRES_PASSWORD='Admin123!'
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 89e5b1a

Please sign in to comment.