everywall / ladder

Selfhosted alternative to 12ft.io. and 1ft.io bypass paywalls with a proxy ladder and remove CORS headers from any URL
GNU General Public License v3.0
4.29k stars 169 forks source link

Add air live reload #48

Closed joncrangle closed 7 months ago

joncrangle commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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