blitz start

Alias: blitz s

Starts the Blitz server. It starts in development mode by default.

Options

OptionShorthandDescriptionDefault
—productionStart the server in production mode. Use this when deploying to a server (not serverless)false
—hostname-HSet the hostname to use for the server.“localhost”
—port-pSet the port you’d like the server to listen on.3000
—no-incremental-buildDisable incremental build and start from a fresh cache. Incremental build is automatically enabled for development mode and disabled during blitz build or when the —production flag is supplied.false

Examples

Development
  1. blitz start
Production
blitz start - 图2note

Make sure to run

blitz build before running blitz start in production.

  1. blitz start --production
  1. blitz start --production -H 127.0.0.1 -p 5632