Documentation › JSON API › Live reloading
To run the application with live reloading, use the make run/live command from the admin makefile:
$ make run/live
This starts the application using the cosmtrek/air live reload tool, which watches your codebase for file changes and automatically rebuilds and restarts the application when needed.
By default, changes to files with the following extensions will trigger a reload:
.go .tpl, .tmpl, .html .css, .scss, .js, .ts, .sql .jpeg, .jpg, .gif, .png, .bmp, .svg, .webp, .ico
You can customize the behavior – including which files and directories are watched – by updating the relevant cosmtrek/air flags used in the run/live command in the admin makefile. Documentation for the available flags can be found here.