Giter Club home page Giter Club logo

Comments (6)

GreeFine avatar GreeFine commented on August 11, 2024 8

Same issue here simple solution is to add the option -T to exec
but with this option i have no more output inside the OUTPUT panel

Vscode settings => Artisan > Docker:Command: docker-compose exec -T <app>

[CMD] php artisan key:generate --show
[CMD] php artisan migrate
[ERR] Command failed: cd /home/greefine/Projects/Blackfoot/airbnb-server-v2/ && docker-compose exec -T app php artisan migrate

from vscode-laravel-artisan.

Arkanius avatar Arkanius commented on August 11, 2024

I've a problem too. When I try to run my docker command with this wxtension I get the error: the input device is not a TTY

[ERR] Command failed: cd /home/victor/projects/api/ && docker-compose exec php php artisan route:list
the input device is not a TTY

But if I just copy the command of this output and run into my terminal, works properly: cd /home/victor/projects/api/ && docker-compose exec php php artisan route:list

Do you have any ideia?

from vscode-laravel-artisan.

Arkanius avatar Arkanius commented on August 11, 2024

Yes! The -T option really solves the problem!

from vscode-laravel-artisan.

agarzon avatar agarzon commented on August 11, 2024

Also, the plugin assumes artisan is already enabled in $PATH. Allowing to customize the command could be very helpful here.

from vscode-laravel-artisan.

github-actions avatar github-actions commented on August 11, 2024

Marking issue as stale since there has'nt been any activity recently.

from vscode-laravel-artisan.

denmely avatar denmely commented on August 11, 2024

Following this example below, I hope it helps others:

docker exec container_name php artisan migrate --database=api
status=$?
if [ $status -ne 0 ]; then
  echo "Erro: O comando de migração falhou com código de saída $status"
  exit 1
fi

from vscode-laravel-artisan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.