tinkerun-vscode
tinkerun-vscode copied to clipboard
Tinkerun not running inside the container
I configured a connection:
{
"connections": [
{
"name": "dev",
"command": "docker exec -it webserver php artisan tinker"
}
]
}
If I run directly the command I can access the tinker inside the container, but If I hit play in VScode it is only returning the local php path instead accessing the container
OK found it, it was not reading the connection file because it wasn't in the root of the project. I have the FE e BE in subfolders in the same project but it can't read from a subfolder, it would be nice to have a configuration in the extension for getting the right since this is a common case and since Tinkerun is only for backend it should go in the backend folder.
Thanks for pointing this out! 🙏
I think instead of adding a custom path option, it would be better if the extension could automatically detect a tinkerun.json file even when it’s located in a subfolder (like a backend directory). This way the setup stays simple and consistent, without requiring extra configuration from the user.
I’ll consider adding autodetection in a future release. 🚀 Thanks again for the suggestion!