Skip to content

Commit 8eb29e5

Browse files
committed
Working on fixing build errors
1 parent eb4b5a2 commit 8eb29e5

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ venv/
4040
.elasticbeanstalk/*
4141
!.elasticbeanstalk/*.cfg.yml
4242
!.elasticbeanstalk/*.global.yml
43+
set_env.sh

Classroom_Project_Instructions/Part_II_Microservices_Application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ In the frontend service, you just need to add a Dockerfile to the */project/udag
7575

7676
```bash
7777
## Build
78-
FROM beevelop/ionic:latest AS ionic
78+
FROM beevelop/ionic:v2021.06.1 AS ionic
7979
# Create app directory
8080
WORKDIR /usr/src/app
8181
# Install app dependencies

set_env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This file is used for convenience of local development.
22
# DO NOT STORE YOUR CREDENTIALS INTO GIT
33
export POSTGRES_USERNAME=postgres
4-
export POSTGRES_PASSWORD=mypassword
5-
export POSTGRES_HOST=postgres.cr9bldgsf1j6.us-east-1.rds.amazonaws.com
4+
export POSTGRES_PASSWORD=dbpass!123
5+
export POSTGRES_HOST=dbproj4.c9apyij8mgm5.us-east-1.rds.amazonaws.com
66
export POSTGRES_DB=postgres
7-
export AWS_BUCKET=mybucket1200798
7+
export AWS_BUCKET=proj4-316612294651
88
export AWS_REGION=us-east-1
99
export AWS_PROFILE=default
1010
export JWT_SECRET=testing

udagram-api/src/sequelize.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ export const sequelize = new Sequelize({
1616
}
1717
},
1818
'storage': ':memory:',
19+
dialectOptions: {
20+
ssl: {
21+
require: true, // Fixes SequelizeConnectionError
22+
rejectUnauthorized: false // This line will fix new error with above line only.
23+
}
24+
},
1925
});

0 commit comments

Comments
 (0)