GithubHelp home page GithubHelp logo

dev server not working about sage HOT 1 CLOSED

ravorona avatar ravorona commented on June 6, 2024
dev server not working

from sage.

Comments (1)

ravorona avatar ravorona commented on June 6, 2024

Hi,
I have never tried localwp but it should work nonetheless. For a local installation, you would need to:

  • Run yarn dev
  • Check if the dev server is running properly (The devServer only serves the assets and not the entire WordPress application). By default the devServer at its root path serve nothing that's why you have the Cannot Get /. The assets keep their relative paths, so you need to check for example: http://localhost:3000/resources/scripts/main.ts
  • Enable hot reload by setting HMR_ENABLED to true in your .env
    This tell your wordpress application to load assets from the HMR_ENTRYPOINT instead of the public or dist folder
  • Run your wordpress application normally from its domain name (not the HMR one). http://wordpress.local for example, from the localwp one in your case i mean.

Hope this help you. 👋

from sage.

Related Issues (7)

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.