How to see the output
ssh user@xx.xx.xx.xx <<'ENDSSH'
set -x -o verbose;
cd /home/user/project
ls -al
docker-compose exec webapp sh -c '. /home/user/app/venv/bin/activate && cd src/ && python manage.py makemigrations'
docker-compose exec webapp sh -c '. /home/user/app/venv/bin/activate && cd src/ && python manage.py migrate'
set +x
ENDSSH
I see the input device is not a TTY
So how to see the output from the commands
docker-compose exec webapp sh -c '. /home/user/app/venv/bin/activate && cd src/ && python manage.py makemigrations'
docker-compose exec webapp sh -c '. /home/user/app/venv/bin/activate && cd src/ && python manage.py migrate'