Giter VIP home page Giter VIP logo

Comments (8)

withinboredom avatar withinboredom commented on September 12, 2024 1

Did you search existing issues? This looks related: #958

from frankenphp.

sneycampos avatar sneycampos commented on September 12, 2024

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

from frankenphp.

ezekel avatar ezekel commented on September 12, 2024

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.

from frankenphp.

sneycampos avatar sneycampos commented on September 12, 2024

Could you give more details about? Your installation, watcher config etc?

from frankenphp.

ezekel avatar ezekel commented on September 12, 2024

@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"]

from frankenphp.

sneycampos avatar sneycampos commented on September 12, 2024

@ezekel You need to install chokidar. According to Laravel Octane docs (https://laravel.com/docs/11.x/octane#watching-for-file-changes)

from frankenphp.

ezekel avatar ezekel commented on September 12, 2024

@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)

from frankenphp.

sneycampos avatar sneycampos commented on September 12, 2024

@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.

from frankenphp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.