-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sail commands don't exit correctly on quit #42
Comments
I have figured out why this is happening… You get this exact same behavior if you run
To be clear, this isn't really an issue with Solo, but it should be documented that commands that expect a TTY (like docker/sail) cannot be used with Solo. |
Hmm... I don't use Sail so I don't fully understand what's happening here. So when Solo tries to kill the process it just kills the docker compose process on the host machine and not the process inside of docker? Is there a way to kill that underlying process? It'd be nice if it just worked with Solo |
Exactly. This isn't unique to sail but illustrative of a problem with a common Laravel tool lots of folks will be familiar with .
There are no easy solutions here, you either need to implement a virtual TTY in PHP, or spawn the process under another tool that does so. |
All processes are now spawned with a PTY. Does this get us any closer? |
@aarondfrancis This doesn't solve the issue in this ticket. This arguable makes things worse, any command that can take input will now stop solo from receiving the keyboard input (e.g. |
Haha dang. Well I'd you have any ideas let me know! |
@aarondfrancis I would roll back this change ASAP |
Sorry, that's not viable at this point. If you can get me a reproduction I can look into it. I don't use sail though so you'll need to be explicit |
@aarondfrancis any command that expects input will work, so |
Cool, thank you! |
Ok I've got the |
@dshafik can you composer install that branch reference and see if it works for Sail? |
@aarondfrancis this is way closer! With It also solved an issue running At this point it's totally usable for me. |
We're getting somewhere! If you want to allow input, you can try
|
@dshafik I just cut a new release. Will you give it a go an let me know what you think? And if all is well can we close this one? |
When running sail commands e.g.
sail up
inside Solo (Solo is running on the host, not inside sail), and quitting Solo, thesail
command don't terminate.This means that a command of
sail npm run dev
leavesvite
running inside the container and when starting Solo again it won't start as the port is already in use.I suspect that each command needs to be sent an explicit
SIGTERM
orSIGKILL
whenq
is pressed inside the Solo UI.The text was updated successfully, but these errors were encountered: