Comments (4)
Hi @p08dev,
Is this what you mean?
https://laradumps.dev/#/laravel/get-started/configuration?id=remote-vscode-wsl2
DS_PREFERRED_IDE=vscode_remote
DS_PREFERRED_WSL_DISTRO=Ubuntu
DS_REMOTE_PATH=/home/jamesbond/Projects/save-the-queen-app
DS_WORKDIR=/var/www/html
from laradumps.
Hi @p08dev,
I have tested this approach with Laravel Sail (Docker) and my host system is macOS, hopefully it will be helpful.
First, create a new editor handler inside config/laradumps.php
. I called mine vscode_docker
:
'ide_handlers' => [
//other ides...
'vscode_docker' => [
'handler' => 'vscode://file/',
'line_separator' => ':',
'remote_path' => '/Users/dan/projects/my-project', //<============ Path on my machine host
'work_dir' => '/var/www/html' //<============ Path inside Docker
],
],
Then, I configured:
remote_path
as my macOS path, the folder where my project lives.
work_dir
as the path inside Docker.
(I know, it doesn't match the key name)
Next, I've updated .env
to use this new configuration:
DS_APP_HOST=host.docker.internal
DS_APP_PORT=9191
DS_SEND_QUERIES=true
DS_SEND_HTTP_CLIENT_REQUESTS=true
DS_SEND_JOBS=true
DS_SEND_COMMANDS=true
DS_SEND_LOGS=true
DS_SEND_LIVEWIRE_COMPONENTS=true
DS_LIVEWIRE_EVENTS=true
DS_LIVEWIRE_DISPATCH=true
DS_SEND_LIVEWIRE_FAILED_VALIDATION=true
DS_AUTO_CLEAR_ON_PAGE_RELOAD=false
DS_AUTO_INVOKE_APP=false
DS_PREFERRED_IDE=vscode_docker #<======
Now, you should be getting LaraDumps to open your
This is not intuitive, and I believe there is room for improvement in V2.
cc: @luanfreitasdev
from laradumps.
Hey @dansysanalyst,
kind of... I am on macOS, running my project in Docker. If I configure it like the documentation describes, it starts vscode but won't open any file:
It only shows "Disconnected from WSL".
Here is my .env:
DS_APP_HOST=host.docker.internal
DS_APP_PORT=9191
DS_SEND_QUERIES=true
DS_SEND_HTTP_CLIENT_REQUESTS=true
DS_SEND_JOBS=true
DS_SEND_COMMANDS=true
DS_SEND_LOGS=true
DS_SEND_LIVEWIRE_COMPONENTS=true
DS_LIVEWIRE_EVENTS=true
DS_LIVEWIRE_DISPATCH=true
DS_SEND_LIVEWIRE_FAILED_VALIDATION=true
DS_AUTO_CLEAR_ON_PAGE_RELOAD=false
DS_AUTO_INVOKE_APP=true
DS_PREFERRED_IDE=vscode_remote
DS_PREFERRED_WSL_DISTRO=Ubuntu
DS_REMOTE_PATH=/Users/p8/Projects/test-project
DS_WORKDIR=/var/www/html
Am I missing something, or does this only support WSL?
from laradumps.
Thanks, @dansysanalyst! It works! I should have thought of that...
from laradumps.
Related Issues (17)
- [BUG] HOT 2
- [BUG] Website download link not working (404) HOT 3
- [BUG] Permission denied HOT 2
- LaraDumps Doc
- Says cannot be opened because the developer cannot be verified HOT 3
- Laradumps don´t work in Laragon? HOT 2
- Please make a option to disable switching focus to laradumps HOT 2
- Suporte ao PHP 7.3 HOT 5
- Broken Installer for Windows 1.50 HOT 2
- Error running artisan ds:check on my pipeline HOT 2
- QUeries HOT 3
- Tests run extremely slowly when Laradumps App is closed and Send Queries is Enabled HOT 5
- Laradumps and WSL2 HOT 9
- Send Queries to defined screen HOT 1
- Queria deixar meu agradecimentos aos criados e mantenedores deste repositório. HOT 1
- [BUG] Empty values are not being displayed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laradumps.