Skip to content

Commit

Permalink
fix vite for docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
fey committed Jun 4, 2024
1 parent a99c154 commit 92ef9df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deploy:
git push heroku main

setup: env-prepare sqlite-prepare install key db-prepare ide-helper
npm run dev
npm run build

install-app:
composer install
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ services:
dockerfile: Dockerfile.dev
volumes:
- .:/app:delegated
ports:
- 5173:5173
command: ["make", "start-frontend"]

database:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"heroku-postbuild": "npm run build",
"lint-js": "node_modules/.bin/eslint --ext .jsx,.js ./resources/js",
"lint-js-fix": "node_modules/.bin/eslint --fix --ext .jsx,.js ./resources/js",
"dev": "vite",
"dev": "vite --host 0.0.0.0",
"build": "vite build"
},
"dependencies": {
Expand Down

0 comments on commit 92ef9df

Please sign in to comment.