vscode-laravel-artisan icon indicating copy to clipboard operation
vscode-laravel-artisan copied to clipboard

Homestead development

Open novack96 opened this issue 6 years ago • 5 comments

Hello!

I'd like to ask if there is any way to use this extension with Homestead properly? If I use the Config Cache or Config Refresh artisan command, my application always shows an UnexpectedValueException Protocol Error exception whenever I try to load a page. I assumed that happens because the command will need to be executed inside the VM. Well. of course, I could execute php artisan config:cache manually via SSH, but I'd rather use this extension. So there is any way to call into play this ext, or I have to manually modify the source code? 😄

Thanks for everyone for the answer in advance!

novack96 avatar Aug 19 '18 10:08 novack96

I have made some updates to the extension. You can now add these additional settings:

  1. Set a custom php location, example:
    • "artisan.php.location": "/path/to/php.exe"
  2. Added addition artisan paths, examples:
    • "artisan.location": ["/path1/artisan", "/path2/artisan"]
    • "artisan.location": "/path/artisan"

Try setting them with this update and let me know if it works for you:

laravel-artisan-0.0.22.vsix.zip

TheColorRed avatar Aug 20 '18 17:08 TheColorRed

I cannot tell the extesnion with these settings for example SSH-ing to the VM and run the command inside the VM, or something like that. I didn't have a second artisan file

novack96 avatar Aug 26 '18 20:08 novack96

Hi, i try to work with your extension, but i cant, because i always get errors... For example, if i write: Artisan Command List, i get: Couldnt get the list, the fields "artisan.php.location" and "artisan.location" arent empty

yakushenkovpaul avatar Aug 27 '18 18:08 yakushenkovpaul

and i made your last update: laravel-artisan-0.0.22.vsix.zip

yakushenkovpaul avatar Aug 27 '18 19:08 yakushenkovpaul

Not one to usually revive old threads but Homestead support would be fantastic. Most of my artisan commands at this point end up being migration related, but I use Homestead so I need to be SSH'd into Homestead to run these,

Perhaps add config setting per workspace for SSH details and directory of the project on the remote server?

uucyy avatar Mar 30 '22 15:03 uucyy

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

github-actions[bot] avatar Apr 27 '23 22:04 github-actions[bot]