Skip to content

Add air live reload#48

Merged
mms-gianni merged 3 commits into
everywall:mainfrom
joncrangle:feat/air
Nov 23, 2023
Merged

Add air live reload#48
mms-gianni merged 3 commits into
everywall:mainfrom
joncrangle:feat/air

Conversation

@joncrangle

Copy link
Copy Markdown
Contributor

This is a very small PR to add a cosmtrek/air configuration file to the project. It's pretty much the default air configuration with a couple minor tweaks.

Air is a pretty great CLI that provides live reload functionality for dev purposes. It's optional to use air for dev, but it certainly makes things more convenient not needing to stop and restart the server when working on code changes.

If you have Air installed, you can simply run air from the project root dir (or the path alias to air if you haven't added it to your .bashrc or .zshrc) and it will build the project to the tmp dir and watch for saved changes that would cause a live reload. It cleans up the tmp folder automatically when you stop the dev server.

@mms-gianni

Copy link
Copy Markdown
Contributor

Never used air before. But sounds nice.

You should mention it in the dev section of the README

https://github.com/everywall/ladder/blob/main/README.md?plain=1#L187

@deoxykev

Copy link
Copy Markdown
Contributor

Oh this is great. I didn't know I needed this. Thanks!

@mms-gianni mms-gianni merged commit 37fad65 into everywall:main Nov 23, 2023
@joncrangle joncrangle deleted the feat/air branch December 1, 2023 04:12
andesco pushed a commit to andesco/ladder that referenced this pull request Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants