mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-31 19:39:20 +08:00 
			
		
		
		
	set the port by env.PORT, specific node version in package.json
This commit is contained in:
		| @@ -6,6 +6,9 @@ | ||||
|         "type": "git", | ||||
|         "url": "https://github.com/louislam/uptime-kuma.git" | ||||
|     }, | ||||
|     "engines": { | ||||
|         "node": ">=14" | ||||
|     }, | ||||
|     "scripts": { | ||||
|         "dev": "vite --host", | ||||
|         "start": "npm run start-server", | ||||
|   | ||||
| @@ -20,7 +20,7 @@ const { login } = require("./auth"); | ||||
| const passwordHash = require("./password-hash"); | ||||
| const version = require("../package.json").version; | ||||
| const hostname = args.host || "0.0.0.0" | ||||
| const port = args.port || 3001 | ||||
| const port = process.env.PORT || args.port || 3001 | ||||
|  | ||||
| console.info("Version: " + version) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user