Skip to content

Commit

Permalink
update readme with docker info
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Jan 11, 2023
1 parent f50ca16 commit d118600
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ A bare-minimum setup to serve as example to adapt to other scenarios ([WordPress

For everything else beyond the PHP side please refer to the [Vite documentation](https://vitejs.dev), which is great.

### Use tool with docker dev environment
* add entry in hosts-file: `127.0.0.1 vitephp.test`
### Use vite php setup with a docker dev environment
* comes with nginx and preinstalled npm in the correct version
* **add entry in hosts-file: `127.0.0.1 vite-php-setup.test`**
* `docker-compose up`
* `docker exec -w /app/vite vitephp.php npm run dev`
* open `http://vitephp.test:8114/`
* `docker exec -w /app/vite vite-php-setup.php npm run dev`
* open `http://vite-php-setup.test:8114/`
* voilà!

### Goal
Expand Down

0 comments on commit d118600

Please sign in to comment.