Skip to content

Commit

Permalink
Merge pull request #165 from thedadams/specify-port
Browse files Browse the repository at this point in the history
chore: allow specifying different port
  • Loading branch information
thedadams authored Aug 15, 2024
2 parents 0c1e319 + fb05ea7 commit 2112552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ensureDirExists(dir) {
}

async function startServer(isPackaged) {
const port = isPackaged ? await getPort({ portRange: [30000, 40000] }) : 3000;
const port = isPackaged ? await getPort({ portRange: [30000, 40000] }) : process.env.PORT || 3000;
const gptscriptBin = join(
isPackaged ? join(resourcesDir, 'app.asar.unpacked') : '',
'node_modules',
Expand Down

0 comments on commit 2112552

Please sign in to comment.