Majiy00
Majiy00
TTask
Created by Majiy00 on 3/19/2025 in #help
Run watch first time
Hi there, Is there a way with a watch command to force it to run the first time it's started. Even if none of the files have changed. In this case I'm thinking of a web server.
version: "3"

tasks:
dev:
desc: Start the app in dev mode with live-reloading.
dotenv:
- .env.local
cmds:
- podman-compose up -d
- air
version: "3"

tasks:
dev:
desc: Start the app in dev mode with live-reloading.
dotenv:
- .env.local
cmds:
- podman-compose up -d
- air
I want to reload the task when the docker compose or .env variables change. Which doesn't happen often but would avoid me. Killing and re running the task. Thanks
1 replies