Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/chisel-scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ function adjustWebpackConfig(baseConfig, directory) {
port: Number(process.env.CHISEL_PORT) + 1,
client: {
...devSeverClient,
webSocketURL: new URL(getUrl())
.toString()
.replace(process.env.CHISEL_PORT, Number(process.env.CHISEL_PORT) + 1),
webSocketURL: (() => {
const url = new URL(getUrl());
url.port = Number(process.env.CHISEL_PORT) + 1;
url.pathname = '/ws';
return url.toString();
})(),
},
}),
setupMiddlewares: (middlewares, devServer) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Use Node.js version `24.11.1` (Minimum `20.12.2`)
Chisel is installed as a npm package using npx command: `npx generator-chisel`, which scaffolds the entire project for you including composer and node dependencies, however when you join the project and clone the repository, follow these steps to start the local development:

1. Go to the theme folder
2. Run `composer install`
3. Run `npm install`
2. Run `npm install`
3. Run `npm run composer install`
4. Copy `wp-config-custom.php` and rename it to `wp-config.php` in the project root directory (if you haven't done so already).
5. Run `npm run wp-config`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ touch .use-devcontainer

pushd ../../..

sudo touch wp-config.php
sudo chown "$USER:$USER" . index.php wp-config.php
if [ -d .git ] ; then sudo chown "$USER:$USER" .git ; fi
chmod +x .devcontainer/compose .devcontainer/exec
Expand Down