Skip to content

Commit

Permalink
Ensure server uses port defined by the app
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Apr 24, 2024
1 parent 1de5f35 commit 9b54b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/wp-now/src/start-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function startServer(
app.use(fileUpload({ defCharset: 'utf8', defParamCharset: 'utf8'}));
app.use(compression({ filter: shouldCompress }));
app.use(addTrailingSlash('/wp-admin'));
const port = await portFinder.getOpenPort();
const port = options.port ?? await portFinder.getOpenPort();
const { php, options: wpNowOptions } = await startWPNow(options);

app.use('/', async (req, res) => {
Expand Down

0 comments on commit 9b54b8c

Please sign in to comment.