update deploy_nomad_mcp

This commit is contained in:
2025-02-26 16:10:35 +07:00
parent baf1723a50
commit 5c619e1f19
3 changed files with 49 additions and 3 deletions

View File

@ -43,7 +43,8 @@ def main():
"PORT": "8000",
"HOST": "0.0.0.0",
"LOG_LEVEL": "INFO",
"RELOAD": "true"
"RELOAD": "true",
"PYTHONPATH": "/app"
},
# Note: The Claude API doesn't directly support command and args,
# so we'll need to add a note about this limitation
@ -82,6 +83,11 @@ def main():
print(" You need to update the job manually to add the following:")
print(" - command: python")
print(" - args: [\"-m\", \"uvicorn\", \"app.main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\"]")
print("\n3. The Claude API doesn't support Gitea artifact configuration.")
print(" You need to update the job manually to add the following:")
print(" - artifact source: git::ssh://git@gitea.service.mesh:2222/Mei_Sheng_Textiles/nomad_mcp.git")
print(" - artifact destination: local/nomad_mcp")
print(" - mount configuration to bind local/nomad_mcp to /app")
else:
print("\n❌ Failed to deploy Nomad MCP service.")
print(f"Message: {result.get('message', 'Unknown error')}")