mirror of
				https://github.com/open-webui/desktop
				synced 2025-06-26 18:15:59 +00:00 
			
		
		
		
	refac
This commit is contained in:
		
							parent
							
								
									bc495914b9
								
							
						
					
					
						commit
						fd3ef1b0bd
					
				| @ -421,6 +421,9 @@ export async function startServer(installationPath?: string, port?: number): Pro | |||||||
| 			? `"${installationPath}\\Scripts\\activate.bat" && open-webui serve` | 			? `"${installationPath}\\Scripts\\activate.bat" && open-webui serve` | ||||||
| 			: `source "${installationPath}/bin/activate" && open-webui serve`; | 			: `source "${installationPath}/bin/activate" && open-webui serve`; | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| 	// Set environment variables in a platform-agnostic way
 | 	// Set environment variables in a platform-agnostic way
 | ||||||
| 	process.env.DATA_DIR = path.join(app.getPath('userData'), 'data'); | 	process.env.DATA_DIR = path.join(app.getPath('userData'), 'data'); | ||||||
| 	process.env.WEBUI_SECRET_KEY = getSecretKey(); | 	process.env.WEBUI_SECRET_KEY = getSecretKey(); | ||||||
| @ -433,6 +436,7 @@ export async function startServer(installationPath?: string, port?: number): Pro | |||||||
| 	startCommand += ` --port ${port}`; | 	startCommand += ` --port ${port}`; | ||||||
| 
 | 
 | ||||||
| 	console.log('Starting Open-WebUI server...', startCommand); | 	console.log('Starting Open-WebUI server...', startCommand); | ||||||
|  | 	logEmitter.emit('log', `${startCommand}`); // Emit log
 | ||||||
| 	logEmitter.emit('log', 'Starting Open-WebUI server...'); // Emit log
 | 	logEmitter.emit('log', 'Starting Open-WebUI server...'); // Emit log
 | ||||||
| 
 | 
 | ||||||
| 	const childProcess = spawn(startCommand, { | 	const childProcess = spawn(startCommand, { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user