mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
fobidden using "npm run dev" in terminal
This commit is contained in:
parent
b81c00a44d
commit
151a17159d
2 changed files with 1 additions and 8 deletions
|
|
@ -12,13 +12,6 @@ class Deployer:
|
|||
|
||||
async def static_server(self, src_path: str) -> str:
|
||||
"""This function will be implemented in the remote service."""
|
||||
# app = aiohttp.web.Application()
|
||||
# app.router.add_static('/', src_path, show_index=True)
|
||||
# runner = aiohttp.web.AppRunner(app)
|
||||
# await runner.setup()
|
||||
# site = aiohttp.web.TCPSite(runner, "127.0.0.1", 0)
|
||||
# await site.start()
|
||||
# port = site._server.sockets[0].getsockname()[1]
|
||||
return f"http://127.0.0.1:{8000}/index.html"
|
||||
|
||||
async def deploy_to_public(self, dist_dir: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue