Closed DevDorrejo closed 8 months ago
Hello,
This allows the user/dev to use air in a more practical way in a rootless (while using podman) dev environment.
air
air() { podman run -it --rm \ -w "$PWD" -v "$PWD":"$PWD" \ -p "$AIR_PORT":"$AIR_PORT" \ docker.io/cosmtrek/air "$@" }
you add this piece of code in .bashrc of example, then run the code: AIR_PORT=8080 air init > this will create the .air.toml
AIR_PORT=8080 air init
AIR_PORT=8080 air -c .ait.toml this will run the .air.toml created by the init.
AIR_PORT=8080 air -c .ait.toml
Hello,
This allows the user/dev to use
air
in a more practical way in a rootless (while using podman) dev environment.you add this piece of code in .bashrc of example, then run the code:
AIR_PORT=8080 air init
> this will create the .air.tomlAIR_PORT=8080 air -c .ait.toml
this will run the .air.toml created by the init.