Comments (2)
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.
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)
- php-wasm: easier to hit memory limit without PHP using mmap() and munmap() HOT 5
- PHP functions and PHP-executed processes have different working directories
- Update Blueprint schema to remove alerts when using the `shorthand` syntax
- php-wasm : Symlink infinite loop HOT 3
- Blueprint Verbosity
- Explore: Bun for bundling, testing, developing (instead of Vite, vitest, esbuild, rollup, multiple configs, ...) HOT 9
- Improve the description of SetSiteOptionsStep HOT 7
- PHP intl extension HOT 1
- Bug: Export changes to Github as PR not working HOT 1
- PDFs won't render in Chrome
- The documentation site is broken HOT 1
- Use global $wp_filter instead of an mu-plugin HOT 6
- Error when running "nx run docs-site:build" the first time HOT 4
- Explore biome as a replacement for eslint/prettier
- Build a Slide Block + export to pdf
- Memory access out of bounds with WooCommerce development plugin HOT 18
- GitHub Integration: Allow new themes/plugins to be exported in a PR HOT 2
- Integrate wp-cli directly on playground.wordpress.net HOT 1
- Support SQLite at the network connection level HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-playground.