I am using air and it is running fine when I run it without a Docker container.
But when it tries to run it inside the Docker container it runs fine the first time. But when I update the code it does not work and gives the following error:
2023-11-20 20:00:44 building...
2023-11-20 20:00:44 failed to remove app/tmp/main server, error: remove app/tmp/main: not a directory
2023-11-20 20:00:45 running...
It seems it picking the wrong path as I have mounted the root directory as app so it should pick the path tmp/main not the app/tmp/main as app is running inside app directory
I am using air and it is running fine when I run it without a Docker container.
But when it tries to run it inside the Docker container it runs fine the first time. But when I update the code it does not work and gives the following error:
It seems it picking the wrong path as I have mounted the root directory as app so it should pick the path
tmp/main
not theapp/tmp/main
as app is running inside app directory.air.toml