@fuzionx/framework 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/Application.js +10 -7
- package/package.json +2 -2
package/lib/core/Application.js
CHANGED
|
@@ -344,17 +344,20 @@ export default class Application {
|
|
|
344
344
|
*/
|
|
345
345
|
async _checkPort(port) {
|
|
346
346
|
const net = await import('node:net');
|
|
347
|
-
return new Promise((resolve
|
|
347
|
+
return new Promise((resolve) => {
|
|
348
348
|
const tester = net.createServer()
|
|
349
349
|
.once('error', (err) => {
|
|
350
350
|
if (err.code === 'EADDRINUSE') {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
` 확인: lsof -i :${port}
|
|
355
|
-
|
|
351
|
+
console.error(
|
|
352
|
+
`\n❌ 포트 ${port}이(가) 이미 사용 중입니다.\n` +
|
|
353
|
+
` 다른 FuzionX 인스턴스가 실행 중인지 확인하세요.\n` +
|
|
354
|
+
` 확인: lsof -i :${port}\n` +
|
|
355
|
+
` 종료: fuser -k ${port}/tcp\n`
|
|
356
|
+
);
|
|
357
|
+
process.exit(1);
|
|
356
358
|
} else {
|
|
357
|
-
|
|
359
|
+
console.error(`❌ 포트 ${port} 확인 실패:`, err.message);
|
|
360
|
+
process.exit(1);
|
|
358
361
|
}
|
|
359
362
|
})
|
|
360
363
|
.once('listening', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuzionx/framework",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Full-stack MVC framework built on @fuzionx/core — Controller, Service, Model, Middleware, DI, EventBus",
|
|
6
6
|
"main": "index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"url": "https://github.com/saytohenry/fuzionx"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@fuzionx/core": "^0.1.
|
|
37
|
+
"@fuzionx/core": "^0.1.8",
|
|
38
38
|
"better-sqlite3": "^12.8.0",
|
|
39
39
|
"knex": "^3.2.5",
|
|
40
40
|
"mongoose": "^9.3.2",
|