Files
greedychipmunk__agent-skills/medusajs-developer/scripts/dev-server.sh
2026-01-12 17:11:25 -05:00

36 lines
818 B
Bash
Executable File

#!/bin/bash
# Development Server Script for MedusaJS
# Starts the Medusa application in development mode with hot reloading
# Usage: ./scripts/dev-server.sh [--host HOST] [--port PORT]
set -e
ARGS=""
# Parse arguments
while [[ $# -gt 0 ]]; do
case $1 in
--host|-h)
ARGS="$ARGS --host $2"
shift 2
;;
--port|-p)
ARGS="$ARGS --port $2"
shift 2
;;
*)
echo "Unknown option: $1"
echo "Usage: ./scripts/dev-server.sh [--host HOST] [--port PORT]"
exit 1
;;
esac
done
echo "Starting Medusa development server..."
echo "The server will watch for file changes and auto-restart"
echo "Admin dashboard will be available with hot reloading"
echo ""
npx medusa develop $ARGS