You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					18 lines
				
				325 B
			
		
		
			
		
	
	
					18 lines
				
				325 B
			| 
											3 years ago
										 | 'use strict' | ||
|  | 
 | ||
|  | process.env.NODE_ENV = 'production' | ||
|  | 
 | ||
|  | const express = require('express') | ||
|  | const app = express() | ||
|  | 
 | ||
|  | app.set('view engine', 'ejs') | ||
|  | 
 | ||
|  | app.get('/', (req, res) => { | ||
|  |   res.render('../../templates/index.ejs', { text: 'text' }) | ||
|  | }) | ||
|  | 
 | ||
|  | app.listen(3000, err => { | ||
|  |   if (err) throw err | ||
|  |   console.log('server listening on 3000') | ||
|  | }) |