@ninebone/mcp 1.0.13 → 1.0.14
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/ecosystem.config.js +8 -0
- package/nine-mcp-start.js +12 -0
- package/package.json +1 -1
- package/src/core/init.js +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// pm2-start.js (프로젝트 루트에 이 파일 하나만 있으면 됨)
|
|
2
|
+
const { execSync } = require('child_process');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
// 현재 스크립트가 위치한 곳이 곧 프로젝트 루트
|
|
6
|
+
const projectRoot = __dirname;
|
|
7
|
+
const configPath = path.join(projectRoot, 'ecosystem.config.js');
|
|
8
|
+
|
|
9
|
+
console.log(`🚀 프로젝트 경로에서 PM2 시작: ${projectRoot}`);
|
|
10
|
+
|
|
11
|
+
// PM2 명령어를 절대 경로로 실행
|
|
12
|
+
execSync(`pm2 start "${configPath}"`, { stdio: 'inherit' });
|
package/package.json
CHANGED
package/src/core/init.js
CHANGED
|
@@ -139,7 +139,7 @@ export async function runInit() {
|
|
|
139
139
|
const success = await createEnvFile(rl);
|
|
140
140
|
if (success) {
|
|
141
141
|
createPromptFiles();
|
|
142
|
-
createEcosystemFile();
|
|
142
|
+
//createEcosystemFile();
|
|
143
143
|
console.log('\n✅ 모든 초기화 작업이 완료되었습니다.');
|
|
144
144
|
|
|
145
145
|
// MCP 환경에 특화된 안내 문구 추가
|