Skip to content

Commit b0fe4f5

Browse files
committed
feat: use env files
1 parent 3cd7b58 commit b0fe4f5

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
POSTGRES_USERNAME=postgres
2+
POSTGRES_PASSWORD=mypassword
3+
POSTGRES_HOST=postgres.cr9bldgsf1j6.us-east-1.rds.amazonaws.com
4+
POSTGRES_DB=postgres
5+
AWS_BUCKET=arn:aws:s3:::mybucket1200798
6+
AWS_REGION=us-east-1
7+
AWS_PROFILE=default
8+
JWT_SECRET=testing
9+
URL=http://localhost:8100

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ log.txt
1212
.vscode/
1313
npm-debug.log*
1414

15+
.env
16+
.env.local
17+
1518
.idea/
1619
.ionic/
1720
.sourcemaps/

set_env.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# run env setup script
2-
sh ./set_env.sh && \
2+
export $(cat .env | xargs) && \
33
# Make sure the Docker services are running in your local machine
44
# Run this command from the directory where you have the "docker-compose-build.yml" file present
55
docker-compose -f docker-compose-build.yml build --parallel && \

0 commit comments

Comments
 (0)