mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-05 09:33:07 +00:00
fix: update port configuration across application files
- Changed the static server port from 5173 to 3007 in init.mjs, playwright.config.ts, vite.config.mts, and main.ts to ensure consistency in server setup and availability. - Updated logging messages to reflect the new port configuration.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { defineConfig, devices } from "@playwright/test";
|
import { defineConfig, devices } from "@playwright/test";
|
||||||
|
|
||||||
const port = process.env.TEST_PORT || 5173;
|
const port = process.env.TEST_PORT || 3007;
|
||||||
const serverPort = process.env.TEST_SERVER_PORT || 3008;
|
const serverPort = process.env.TEST_SERVER_PORT || 3008;
|
||||||
const reuseServer = process.env.TEST_REUSE_SERVER === "true";
|
const reuseServer = process.env.TEST_REUSE_SERVER === "true";
|
||||||
const mockAgent =
|
const mockAgent =
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ let mainWindow: BrowserWindow | null = null;
|
|||||||
let serverProcess: ChildProcess | null = null;
|
let serverProcess: ChildProcess | null = null;
|
||||||
let staticServer: Server | null = null;
|
let staticServer: Server | null = null;
|
||||||
const SERVER_PORT = 3008;
|
const SERVER_PORT = 3008;
|
||||||
const STATIC_PORT = 5173;
|
const STATIC_PORT = 3007;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get icon path - works in both dev and production, cross-platform
|
* Get icon path - works in both dev and production, cross-platform
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export default defineConfig(({ command }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 3007,
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
|
|||||||
6
init.mjs
6
init.mjs
@@ -301,8 +301,8 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Kill any existing processes on required ports
|
// Kill any existing processes on required ports
|
||||||
log('Checking for processes on ports 5173 and 3008...', 'yellow');
|
log('Checking for processes on ports 3007 and 3008...', 'yellow');
|
||||||
await killPort(5173);
|
await killPort(3007);
|
||||||
await killPort(3008);
|
await killPort(3008);
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
||||||
@@ -377,7 +377,7 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log('✓ Server is ready!', 'green');
|
log('✓ Server is ready!', 'green');
|
||||||
log(`The application will be available at: http://localhost:5173`, 'green');
|
log(`The application will be available at: http://localhost:3007`, 'green');
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
||||||
// Start web app
|
// Start web app
|
||||||
|
|||||||
Reference in New Issue
Block a user