mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
initial commit
This commit is contained in:
31
init.sh
Executable file
31
init.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Automaker - Development Environment Setup Script
|
||||
|
||||
echo "=== Automaker Development Environment Setup ==="
|
||||
|
||||
# Navigate to app directory
|
||||
APP_DIR="$(dirname "$0")/app"
|
||||
|
||||
if [ ! -d "$APP_DIR" ]; then
|
||||
echo "Error: app directory not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install dependencies if node_modules doesn't exist
|
||||
if [ ! -d "$APP_DIR/node_modules" ]; then
|
||||
echo "Installing dependencies..."
|
||||
npm install --prefix "$APP_DIR"
|
||||
fi
|
||||
|
||||
# Install Playwright browsers if needed
|
||||
echo "Checking Playwright browsers..."
|
||||
npx playwright install chromium 2>/dev/null || true
|
||||
|
||||
# Kill any process on port 3000
|
||||
echo "Checking port 3000..."
|
||||
lsof -ti:3000 | xargs kill -9 2>/dev/null || true
|
||||
|
||||
# Start the dev server
|
||||
echo "Starting Next.js development server..."
|
||||
npm run dev --prefix "$APP_DIR"
|
||||
Reference in New Issue
Block a user