sh: can't open './scripts/run.sh': No such file or directory
Unanswered
English Springer Spaniel posted this in #help-forum
English Springer SpanielOP
I started facing this error as soon as I tried to get HMR or Live Reloading working in Development Mode in Next.js & Remix (yes, I have 2 different apps)
The problem started when I mounted pwd/cwd in volumes like
How do I solve this problem?
My full question is https://stackoverflow.com/q/78144635/6141587 bcz Discord doesnt support long form.
I've a sample repo with code -> https://github.com/deadcoder0904/easypanel-nextjs-sqlite
Relevant files:
1. scripts/run.sh
2. docker/production/Dockerfile
3. docker/development/docker-compose.yml
Everything works if I remove
I followed this blog https://dawchihliou.github.io/articles/the-last-dockerfile-you-need-for-nestjs which is kinda similar.
Funny thing is if I exec & do
Any ideas?
The problem started when I mounted pwd/cwd in volumes like
- .:/app or - ./:/appHow do I solve this problem?
My full question is https://stackoverflow.com/q/78144635/6141587 bcz Discord doesnt support long form.
I've a sample repo with code -> https://github.com/deadcoder0904/easypanel-nextjs-sqlite
Relevant files:
1. scripts/run.sh
2. docker/production/Dockerfile
3. docker/development/docker-compose.yml
Everything works if I remove
- .:/app but i dont get live reloading.I followed this blog https://dawchihliou.github.io/articles/the-last-dockerfile-you-need-for-nestjs which is kinda similar.
Funny thing is if I exec & do
MODE=development sh ./scripts/run.sh, then it runs fine except localhost doesnt show up but sh ./scripts/run.sh gives error as $MODE is used in run.sh. i used command in docker-compose.yml instead of CMD in Dockerfile.Any ideas?