Skip to content
Snippets Groups Projects
Commit bf894dc9 authored by tpgus2603's avatar tpgus2603
Browse files

refactor: 배포환경에 맞게 db설정 바꿈

parent 208d329f
No related branches found
No related tags found
1 merge request!43배포코드 master브랜치로
...@@ -7,13 +7,12 @@ async function syncRdb() { ...@@ -7,13 +7,12 @@ async function syncRdb() {
try { try {
// 데이터베이스 연결 테스트 // 데이터베이스 연결 테스트
await sequelize.authenticate(); await sequelize.authenticate();
console.log('Rdb데이터베이스 연결 성공.'); console.log('Rdb 데이터베이스 연결 성공.');
// 모든 모델 동기화 await sequelize.sync();
await sequelize.sync({ force: true }); console.log('모든 모델이 성공적으로 동기화됨.');
console.log('모든 모델이 성공적으로 동기화되었습니다.');
} catch (error) { } catch (error) {
console.error('Rdb데이터베이스 연결 실패:', error); console.error('Rdb 데이터베이스 연결 실패:', error);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment