Allow host setting by ENV
This commit is contained in:
		
							parent
							
								
									e536ba1019
								
							
						
					
					
						commit
						10623873e8
					
				| @ -9,8 +9,8 @@ var DocumentHandler = require('./lib/document_handler'); | |||||||
| 
 | 
 | ||||||
| // Load the configuration and set some defaults
 | // Load the configuration and set some defaults
 | ||||||
| var config = JSON.parse(fs.readFileSync('./config.js', 'utf8')); | var config = JSON.parse(fs.readFileSync('./config.js', 'utf8')); | ||||||
| config.port = config.port || 7777; | config.port = process.env.PORT || config.port || 7777; | ||||||
| config.host = config.host || 'localhost'; | config.host = process.env.HOST || config.host || 'localhost'; | ||||||
| 
 | 
 | ||||||
| // Set up the logger
 | // Set up the logger
 | ||||||
| if (config.logging) { | if (config.logging) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 John Crepezzi
						John Crepezzi