Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from NativePHP/fix-php-port
Browse files Browse the repository at this point in the history
Fix PHP port resolver issue
  • Loading branch information
mpociot authored Jul 31, 2023
2 parents 83f13af + bfeb5d5 commit dfea07a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/server/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const appPath = getAppPath();
function getPhpPort() {
return __awaiter(this, void 0, void 0, function* () {
return yield (0, get_port_1.default)({
host: '127.0.0.1',
port: get_port_1.default.makeRange(8100, 9000)
});
});
Expand Down
1 change: 1 addition & 0 deletions src/server/php.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const appPath = getAppPath();

async function getPhpPort() {
return await getPort({
host: '127.0.0.1',
port: getPort.makeRange(8100, 9000)
});
}
Expand Down

0 comments on commit dfea07a

Please sign in to comment.