Skip to content

Commit e4b58d8

Browse files
authored
Merge pull request kookmin-sw#5 from capstone-maru/feat#1-migrate_postgre
Feat#1 migrate postgre
2 parents 8f755a9 + 0bc13f5 commit e4b58d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ jobs:
4141
key: ${{ secrets.AWS_ACCESS_SECRET_KEY }} # pem 키
4242
# 도커 작업
4343
script: |
44-
git clone https://github.com/capstone-maru/maru-rec-sys.git
4544
cd maru-rec-sys
4645
46+
git pull
47+
4748
docker stop maru-rec-sys-container
4849
4950
docker rm maru-rec-sys-container

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class DataModel(BaseModel):
5050
user: UserCategory
5151
post: PostCategory
5252

53-
# DATABASE_URL = "postgresql://cheesecrust:0810jack@mydatabase.c3kmc4wcyz81.ap-northeast-2.rds.amazonaws.com/maru"
54-
DATABASE_URL = "postgresql://localhost:5432/maru"
53+
DATABASE_URL = "postgresql://cheesecrust:0810jack@mydatabase.c3kmc4wcyz81.ap-northeast-2.rds.amazonaws.com/maru"
54+
# DATABASE_URL = "postgresql://localhost:5432/maru"
5555
database = Database(DATABASE_URL)
5656

5757

0 commit comments

Comments
 (0)