move start script outside of src
This commit is contained in:
		
							parent
							
								
									ebc8b3284e
								
							
						
					
					
						commit
						38b01a2c07
					
				
					 2 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										3
									
								
								index.ts
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								index.ts
									
										
									
									
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | import server from "./src/index.ts" | ||||||
|  | 
 | ||||||
|  | await server.start() | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| import { pogo, serve } from "../deps.ts"; | import { pogo, serve } from "../deps.ts"; | ||||||
| import routes from "./routes.generated.ts" | import routes from "./generated/routes.ts" | ||||||
| import domain from "../utils/middleware/domain.ts"; | import domain from "../utils/middleware/domain.ts"; | ||||||
| 
 | 
 | ||||||
| const env = { | const env = { | ||||||
|  | @ -25,10 +25,6 @@ routes.forEach(route => { | ||||||
|     }) |     }) | ||||||
| }) | }) | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| console.log(`Dreamland (should be) online on 0.0.0.0:${env.port}`) | console.log(`Dreamland (should be) online on 0.0.0.0:${env.port}`) | ||||||
| await server.start() |  | ||||||
| 
 | 
 | ||||||
|  | export default server | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue