Running your app
Last updated
Was this helpful?
Navigate to your project directory and start the development server with:
au runThis command builds your application and starts a minimal web server that serves your app. The development server automatically refreshes your browser when source code changes are detected.
Run with a specific environment configuration:
au run --env prodSee Environments for details on configuring environment-specific settings.
Override the default port (configured in aurelia.json):
au run --port 8080Automatically open your default browser when the server starts:
au run --openIf your project uses Webpack, you can enable Hot Module Reload for faster development:
HMR updates modules in the browser without a full page reload, preserving application state during development.
If you chose to use ASP.NET Core and Webpack during project setup, start your application using:
This starts both the ASP.NET Core server and the Webpack development middleware.
au runThe CLI builds your application using the current environment settings
A local web server starts (BrowserSync by default)
The CLI watches your source files for changes
When changes are detected, affected bundles are rebuilt
The browser automatically refreshes to show your changes
The au run command combines building and serving. If you only need to build without a server, use au build instead. If you need the server without file watching, you can serve the output directory with any static file server.
Last updated
Was this helpful?
Was this helpful?
au run --hmrdotnet run