Giter VIP home page Giter VIP logo

Comments (2)

adamziel avatar adamziel commented on June 9, 2024 1

A local dev server still needs a JS bundler to bundle all the JS code, and with Vite we need to use its dev server.

What I had in mind was taking the build and bundled output, so the same set of files as we'd deploy on playground.wordpress.net, and serving that using the CLI Playground. The PHP server package could help us with that.

At first, it would be just a cool gimmick – you can run the in-browser Playground locally without a million node packages. Then it could potentially make it easy to host Playground on most PHP hostings. Then, we could bundle that server as a single executable and you no longer need node to work with Playground locally. Finally, and I'm not sure what's the application of that, but we could explore running the same PHP code on the server and in the browser as in we'd have an isomorphic PHP app.

from wordpress-playground.

bgrgicak avatar bgrgicak commented on June 9, 2024

In case it helps, I like to use this Docker command to start a local dev server. This won't load Playground, but it will load pages like the PR preview and allow you to test PHP scripts (proxy, logger).

I assume that we could get everything running, by mounting the correct public folders.

docker run -d -p 8787:80 -v "$PWD/packages/playground/website/public":/var/www/html php:8.0-apache

from wordpress-playground.

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.