sprite console my-appThen inside the sprite:
# Check if service process is running
ps aux | grep bun
# Check what's listening on port 8080
netstat -tlnp | grep 8080
# Or with lsof
lsof -i :8080# Inside sprite console
tail -100 /.sprite/logs/services/hyperstar-app.log
# Watch live
tail -f /.sprite/logs/services/hyperstar-app.log# Inside sprite console
ls -la /app/
cat /app/package.json
cat /app/hyperstar.json# Inside sprite console
cd /app
PORT=8080 bun run app.tsThis will show you any errors directly.
# Inside sprite console
cd /app
bun installSymptom: Error about missing "hyperstar" module
Fix: The workspace dependency might not work on Sprites. Update package.json:
{
"dependencies": {
"hyperstar": "latest"
}
}Symptom: App starts but Bad Gateway
Fix: Ensure app listens on PORT from environment
Symptom: No process running
Check service with API:
curl -H "Authorization: Bearer $SPRITE_TOKEN" \
https://api.sprites.dev/v1/sprites/my-app/services/hyperstar-appThe "hyperstar": "workspace:*" won't work on Sprites because it's not a monorepo.
Fix in test-deploy/package.json:
{
"dependencies": {
"hyperstar": "^0.2.0"
}
}Create test-simple.ts:
Bun.serve({
port: 8080,
fetch(req) {
return new Response("Hello from Sprite!")
}
})
console.log("Server running on port 8080")Create hyperstar.json:
{
"name": "test-simple",
"entrypoint": "test-simple.ts"
}Create minimal package.json:
{
"name": "test-simple",
"type": "module"
}Deploy this first to verify the Services API deployment works.
curl -X PUT \
-H "Authorization: Bearer $SPRITE_TOKEN" \
-H "Content-Type: application/json" \
https://api.sprites.dev/v1/sprites/my-app/services/test-server \
-d '{
"cmd": "bun",
"args": ["run", "app.ts"],
"dir": "/app",
"env": {"PORT": "8080"},
"http_port": 8080
}'curl -X POST \
-H "Authorization: Bearer $SPRITE_TOKEN" \
"https://api.sprites.dev/v1/sprites/my-app/services/test-server/start?duration=10s"curl -X POST \
-H "Authorization: Bearer $SPRITE_TOKEN" \
"https://api.sprites.dev/v1/sprites/my-app/services/test-server/stop?timeout=5s"sprite ssh my-app
dmesg | tail -50
journalctl -xe# Inside sprite console
cd /app
bun add hyperstar
bun run app.ts- First: Check service logs (step 2 above)
- If no logs: Service didn't start - check service definition
- If errors about module: Fix package.json to use published version
- If port issues: Verify PORT env var and app.serve() config
- If still stuck: Try the simple HTTP server test first