Open ezekel opened 1 month ago
Did you search existing issues? This looks related: #958
Did you search existing issues? This looks related: #958
The related issue (#958) was from him 😂 I think he just doesn't know how to use Octane and are recreating the issue in frankenphp repo
Hi,
That other thread fixed the API route when I edited the response, and when I use Postman I get the actual response, My problem here is the HMR is not working although I mentioned also in my other thread that the HMR is not working.
Could you give more details about? Your installation, watcher config etc?
@sneycampos
here is my docker-compose and dockerfile
php:
container_name: nuxtnew
build:
context: .
dockerfile: ./docker/web.dockerfile
image: nuxtnew
ports:
- "80:80"
- "443:443"
- "443:443/udp"
- "5173:5173"
volumes:
- .:/app
entrypoint: php artisan octane:frankenphp --watch --max-requests=250 --host=larabells.local --port=443 --admin-port=2019 --https
environment:
- SERVER_NAME=larabells.local
In my dockerfile
FROM dunglas/frankenphp:1.2.3-builder-php8.3
RUN install-php-extensions \
pdo_mysql \
gd \
intl \
zip \
opcache\
pcntl\
@composer
WORKDIR /app
COPY . /app
# Install npm packages
RUN npm install
EXPOSE 5173
ENTRYPOINT ["php", "artisan", "octane:frankenphp", "--watch"]
@ezekel You need to install chokidar. According to Laravel Octane docs (https://laravel.com/docs/11.x/octane#watching-for-file-changes)
@sneycampos
I already tried installing it inside the container and also to the dockerfile but no luck.
but I can see it to the conainer
[vite] full reload resources/views/welcome.blade.php
[vite] full reload resources/views/welcome.blade.php (x2)
@sneycampos
I already tried installing it inside the container and also to the dockerfile but no luck.
but I can see it to the conainer
[vite] full reload resources/views/welcome.blade.php [vite] full reload resources/views/welcome.blade.php (x2)
This is vite hotreload, you need watcher configured like octane documentation.
Hi,
I have Laravel + Octane, but the problem the HMR will not work, I need to refresh the page just to reflect the changes.
This is how I access my site in local https://mysite.local
here is my composer
Thank you in advance.