T
Task7d ago
Majiy00

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
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?