mirror of
https://github.com/LukeHagar/subdomain-test.git
synced 2025-12-06 04:21:26 +00:00
Replace pnpm with Bun for package management. Update Dockerfile and README. Co-authored-by: lukeslakemail <lukeslakemail@gmail.com>
1.4 KiB
1.4 KiB
Subdomain Test
A SvelteKit application powered by Bun and deployable via Railpack.
Prerequisites
- Bun (>=1.3.0)
Development
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 -- --open
Building
To create a production version of your app:
bun run build
You can preview the production build with bun run preview.
Deployment
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
Deploy with Railpack
The project includes:
railpack.json- Railpack deployment configurationDockerfile.railpack- Optimized Dockerfile for Bun.railpackignore- Files to exclude from deployment
Deploy with Docker
# Build the Docker image
docker build -f Dockerfile.railpack -t subdomain-test .
# Run the container
docker run -p 3000:3000 subdomain-test
Scripts
bun 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