-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-dev.sh
More file actions
executable file
·31 lines (23 loc) · 961 Bytes
/
run-dev.sh
File metadata and controls
executable file
·31 lines (23 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Coffee Calculator Dev Server Launcher
# This script runs the GTKx dev server inside the distrobox container
set -e
# Check if distrobox is available
if ! command -v distrobox &> /dev/null; then
echo "Error: distrobox is not installed or not in PATH"
exit 1
fi
# Check if the container exists
if ! distrobox list | grep -q "coffee-calc-dev"; then
echo "Error: coffee-calc-dev container not found"
echo "Please create it first with: distrobox create --name coffee-calc-dev --image registry.fedoraproject.org/fedora-toolbox:latest"
exit 1
fi
# Get the script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
echo "Starting Coffee Calculator dev server..."
echo "Project root: $PROJECT_ROOT"
echo ""
# Run the dev server in the distrobox container
distrobox enter coffee-calc-dev -- bash -c "cd '$PROJECT_ROOT/examples/coffee-calculator' && pnpm run dev"