A SvelteKit application powered by Bun and deployable via Railpack.
- Bun (>=1.3.0)
Install dependencies and start the development server:
bun install
bun run dev
# or start the server and open the app in a new browser tab
bun run dev -- --openTo create a production version of your app:
bun run buildYou can preview the production build with bun run preview.
This project is configured for deployment via Railpack:
- Railpack Configuration: See
railpack.jsonfor deployment settings - Docker Support: Use
Dockerfile.railpackfor containerized deployment - Bun Runtime: Optimized for Bun's fast JavaScript runtime
The project includes:
railpack.json- Railpack deployment configurationDockerfile.railpack- Optimized Dockerfile for Bun.railpackignore- Files to exclude from deployment
# Build the Docker image
docker build -f Dockerfile.railpack -t subdomain-test .
# Run the container
docker run -p 3000:3000 subdomain-testbun run dev- Start development serverbun run build- Build for productionbun run preview- Preview production buildbun run start- Start production serverbun run check- Run type checkingbun run format- Format code with Prettierbun run lint- Lint code with Prettier