Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add depoy test script

Tomas Valenta447066ef5793
diff --git a/api-service/deploy_test.py b/api-service/deploy_test.py
index 3b5633293..6e8748fd6 100644
--- a/api-service/deploy_test.py
+++ b/api-service/deploy_test.py
@@ -1,8 +1,6 @@
from session.playground import NodeJSPlayground
-from session.deploy import Deployment
playground = NodeJSPlayground([])
-deployment = Deployment(playground.session)
code = """
@@ -10,15 +8,14 @@ const express = require('express');
var app = express();
app.get('/', (req, res) => {
- res.send('hello world')
+ res.send('hello world2')
})
-app.listen(3000, () =>
- console.log(`Example app listening at 3000`)
-)
"""
# code = """
# console.log('')
# """
-deployment.new("te-ddx", code, [])
+playground.write_file("/code/index.js", code)
+url = playground.deploy("t1", [])
+print(url)