- Add a Dockerfile for easy building and running of the application. - Simplify the install.sh script by removing unnecessary steps and hardcoded values. The installation of Tailwind CSS and Shadcn UI is now handled within the application. This allows for greater flexibility and simplifies the process. - Use environment variables for HOST and PORT, providing defaults.
11 lines
258 B
Bash
Executable File
11 lines
258 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set default values for HOST and PORT if not provided
|
|
HOST=${HOST:-0.0.0.0}
|
|
PORT=${PORT:-3000}
|
|
|
|
# Change to the Svelte app directory
|
|
cd sweb
|
|
|
|
# Run the development server with the specified host and port
|
|
bun run dev -- --host $HOST --port $PORT |