Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebBack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websystem
WebBack
Commits
bf894dc9
Commit
bf894dc9
authored
3 months ago
by
tpgus2603
Browse files
Options
Downloads
Patches
Plain Diff
refactor: 배포환경에 맞게 db설정 바꿈
parent
208d329f
No related branches found
Branches containing commit
No related tags found
1 merge request
!43
배포코드 master브랜치로
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sync.js
+4
-5
4 additions, 5 deletions
sync.js
with
4 additions
and
5 deletions
sync.js
+
4
−
5
View file @
bf894dc9
...
...
@@ -7,13 +7,12 @@ async function syncRdb() {
try
{
// 데이터베이스 연결 테스트
await
sequelize
.
authenticate
();
console
.
log
(
'
Rdb데이터베이스 연결 성공.
'
);
console
.
log
(
'
Rdb
데이터베이스 연결 성공.
'
);
// 모든 모델 동기화
await
sequelize
.
sync
({
force
:
true
});
console
.
log
(
'
모든 모델이 성공적으로 동기화되었습니다.
'
);
await
sequelize
.
sync
();
console
.
log
(
'
모든 모델이 성공적으로 동기화됨.
'
);
}
catch
(
error
)
{
console
.
error
(
'
Rdb데이터베이스 연결 실패:
'
,
error
);
console
.
error
(
'
Rdb
데이터베이스 연결 실패:
'
,
error
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment