start Command
Start the server. Alias for 'dev' - behavior is determined by NODE_ENV.
📖 Usage
Basic command syntax.
terminal
frame-master start [options]# Or with bunxbunx frame-master start
⚙️ Options
Available flags.
-v, --verboseEnable detailed logging-h, --helpShow help📋 Prerequisites
Steps before running production server.
⚠️
Run
frame-master build before starting the production server to compile optimized bundles.terminal
# Build firstframe-master build# Then startframe-master start
🌍 Environment
Environment configuration for production.
NODE_ENVShould be "production"terminal
# Set environment variablesexport NODE_ENV=productionexport PORT=8080frame-master start
📌 Command Alias
dev and start are the same command.
💡
dev and start are aliases - they run the same server. The behavior (development vs production) is determined entirely by the NODE_ENV environment variable.| NODE_ENV | Behavior |
|---|---|
development (default) | Hot reload, file watching, verbose errors |
production | Optimized, minified, no file watching |
🚀 Deployment
Common deployment patterns.
Docker
Dockerfile
FROM oven/bun:latestWORKDIR /appCOPY package.json bun.lockb ./ENV NODE_ENV=productionRUN bun install --productionCOPY . .RUN bun run frame-master buildEXPOSE 3000CMD ["bun", "run", "frame-master", "start"]
Process Manager (PM2)
terminal
pm2 start "bunx frame-master start" --name my-app
Systemd Service
/etc/systemd/system/myapp.service
[Unit]Description=Frame-Master AppAfter=network.target[Service]Type=simpleUser=www-dataWorkingDirectory=/var/www/myappEnvironment=NODE_ENV=productionExecStart=/home/<username>/.bun/bin/bun run frame-master startRestart=on-failure[Install]WantedBy=multi-user.target
