Add air live reload#48
Merged
Merged
Conversation
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 |
Contributor
|
Oh this is great. I didn't know I needed this. Thanks! |
andesco
pushed a commit
to andesco/ladder
that referenced
this pull request
Sep 15, 2025
Add air live reload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
airfrom the project root dir (or the path alias to air if you haven't added it to your.bashrcor.zshrc) and it will build the project to thetmpdir and watch for saved changes that would cause a live reload. It cleans up thetmpfolder automatically when you stop the dev server.