Skip to content

Commit

Permalink
Update working-with-vite-in-ddev.md
Browse files Browse the repository at this point in the history
Added language to start vite as a daemon
  • Loading branch information
dingman authored and rfay committed Oct 1, 2024
1 parent 37ada58 commit f1cb22c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/content/blog/working-with-vite-in-ddev.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,14 @@ export default defineConfig({

The devserver can be started via `ddev npm run dev`.

If you want to run this in the background as a daemon, edit your config.yaml and add the this:
```
web_extra_daemons:
- name: vite
command: bash -c 'npm install && npm run dev -- --host'
directory: /var/www/html
```

Example repository:

- [mandrasch/ddev-laravel-vite](https://github.com/mandrasch/ddev-laravel-vite)
Expand Down

0 comments on commit f1cb22c

Please sign in to comment.