Change default port:
Client = 3000 API = 3001 Gateway = 3002
This commit is contained in:
		
							parent
							
								
									e9cb5f8a10
								
							
						
					
					
						commit
						4c8379c874
					
				| @ -77,7 +77,7 @@ router.post( | ||||
| 
 | ||||
| 		if (email) { | ||||
| 			// replace all dots and chars after +, if its a gmail.com email
 | ||||
| 			if (!adjusted_email) throw FieldErrors({ email: { code: "INVALID_EMAIL", message: "Invalid Email format" } }); | ||||
| 			if (!adjusted_email) throw FieldErrors({ email: { code: "INVALID_EMAIL", message: req.t("auth:register.INVALID_EMAIL") } }); | ||||
| 
 | ||||
| 			// check if there is already an account with this email
 | ||||
| 			const exists = await UserModel.findOne({ email: adjusted_email }).exec(); | ||||
|  | ||||
| @ -3,7 +3,7 @@ import { Router } from "express"; | ||||
| const router = Router(); | ||||
| 
 | ||||
| router.get("/", (req, res) => { | ||||
| 	res.send({ url: "ws://localhost:2000" }); | ||||
| 	res.send({ url: "ws://localhost:3002" }); | ||||
| }); | ||||
| 
 | ||||
| export default router; | ||||
|  | ||||
| @ -23,7 +23,7 @@ if (cluster.isMaster && process.env.production == "true") { | ||||
| 	}); | ||||
| } else { | ||||
| 	var port = Number(process.env.PORT); | ||||
| 	if (isNaN(port)) port = 1000; | ||||
| 	if (isNaN(port)) port = 3001; | ||||
| 
 | ||||
| 	const server = new FosscordServer({ port }); | ||||
| 	server.start().catch(console.error); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy