Spaces:
Build error
Build error
Deployment commited on
Commit ·
14dca27
1
Parent(s): 8431ee0
Automated deployment update
Browse files- deployments/huggingface/start.sh +21 -0
- scripts/deploy_hf.py +7 -0
deployments/huggingface/start.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Start Rust Memory Service in background
|
| 4 |
+
echo "Starting Memory Service..."
|
| 5 |
+
./memory-server &
|
| 6 |
+
MEMORY_PID=$!
|
| 7 |
+
|
| 8 |
+
# Wait for Memory Service to spark up (simple sleep or loop check)
|
| 9 |
+
echo "Waiting for Memory Service to initialize..."
|
| 10 |
+
sleep 2
|
| 11 |
+
|
| 12 |
+
# Start Agent Server
|
| 13 |
+
echo "Starting Agent Server..."
|
| 14 |
+
./agent-server &
|
| 15 |
+
AGENT_PID=$!
|
| 16 |
+
|
| 17 |
+
# Wait for any process to exit
|
| 18 |
+
wait -n
|
| 19 |
+
|
| 20 |
+
# Exit with status of process that exited first
|
| 21 |
+
exit $?
|
scripts/deploy_hf.py
CHANGED
|
@@ -116,6 +116,13 @@ def deploy_service(service_type):
|
|
| 116 |
# Always overwrite README to ensure correct configuration
|
| 117 |
shutil.copy2(project_root / readme_src, Path(temp_dir) / "README.md")
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
for wfile in ["go.work", "go.work.sum"]:
|
| 120 |
src = project_root / wfile
|
| 121 |
if src.exists():
|
|
|
|
| 116 |
# Always overwrite README to ensure correct configuration
|
| 117 |
shutil.copy2(project_root / readme_src, Path(temp_dir) / "README.md")
|
| 118 |
|
| 119 |
+
# Explicitly copy start.sh (needed for runtime, might be untracked)
|
| 120 |
+
start_sh_src = project_root / "deployments/huggingface/start.sh"
|
| 121 |
+
start_sh_dst = Path(temp_dir) / "deployments/huggingface/start.sh"
|
| 122 |
+
if start_sh_src.exists():
|
| 123 |
+
start_sh_dst.parent.mkdir(parents=True, exist_ok=True)
|
| 124 |
+
shutil.copy2(start_sh_src, start_sh_dst)
|
| 125 |
+
|
| 126 |
for wfile in ["go.work", "go.work.sum"]:
|
| 127 |
src = project_root / wfile
|
| 128 |
if src.exists():
|