build: add bun install to automation startup

- Add bun-install service to run on postEnvironmentStart
- Fix incorrect workspace paths in existing services
- Ensure dependencies are installed before dev servers start

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2025-09-23 23:06:05 +00:00
parent 82ce2ac90c
commit 58775a25d9

View File

@@ -1,11 +1,32 @@
services: services:
bun-install:
name: Install Dependencies
description: Installs project dependencies using bun install
commands:
start: |
echo "Installing dependencies with bun..."
cd /workspaces/drive
bun install
echo "Dependencies installed successfully"
ready: |
# Check if node_modules exists and has content
if [ -d "/workspaces/drive/node_modules" ] && [ "$(ls -A /workspaces/drive/node_modules)" ]; then
echo "Dependencies are installed"
exit 0
else
echo "Dependencies are not installed"
exit 1
fi
triggeredBy:
- postEnvironmentStart
bun-dev: bun-dev:
name: Bun Development Server name: Bun Development Server
description: Runs the Bun development server with hot reloading description: Runs the Bun development server with hot reloading
commands: commands:
start: | start: |
echo "Starting Bun development server..." echo "Starting Bun development server..."
cd /workspaces/workspaces cd /workspaces/drive
bun run dev bun run dev
ready: | ready: |
# Check if the development server is responding # Check if the development server is responding
@@ -29,7 +50,7 @@ services:
commands: commands:
start: | start: |
echo "Starting Convex development server..." echo "Starting Convex development server..."
cd /workspaces/workspaces cd /workspaces/drive
bunx convex dev bunx convex dev
ready: | ready: |
# Check if Convex dev server is running by looking for the process # Check if Convex dev server is running by looking for the process