-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: vite 추가 * build: vite + esm 모듈로 전환 * build: nodemon, ts-node 제거 * fix: entities를 named export로 변경 * perf: hmr 적용 --------- Co-authored-by: nocontribute <>
- Loading branch information
Showing
43 changed files
with
605 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,3 @@ RUN pnpm -r run build | |
|
||
WORKDIR /app/backend | ||
|
||
EXPOSE 3000 | ||
ENTRYPOINT [ "pnpm", "prod" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
import { DataSource, DataSourceOptions } from 'typeorm'; | ||
import { connectOption } from '~/config'; | ||
import { connectMode, connectOption } from '~/config'; | ||
import * as entities from '~/entity/entities'; | ||
import { logger } from './v1/utils/logger'; | ||
|
||
export const option: DataSourceOptions = { | ||
type: 'mysql', | ||
port: 3306, | ||
...connectOption, | ||
entities: [ | ||
`${__dirname}/**/entities/*.{js,ts}`, | ||
], | ||
entities: Object.values(entities), | ||
logging: true, | ||
// synchronize: true, | ||
poolSize: 200, | ||
}; | ||
console.log(__dirname); | ||
logger.info(__dirname); | ||
const jipDataSource = new DataSource(option); | ||
await jipDataSource.initialize().then(() => { | ||
logger.info('typeORM INIT SUCCESS'); | ||
logger.info(connectMode); | ||
}); | ||
|
||
export default jipDataSource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.