Showing
1 changed file
with
12 additions
and
7 deletions
1 | -var express = require('express'); | 1 | +var express = require('express'); |
2 | -var app = express(); | 2 | +var path = require('path'); |
3 | +var app = express(); | ||
4 | +app.use(express.static(path.join(__dirname,'public'))); | ||
5 | +app.use(express.static(path.join(__dirname,'css'))); | ||
6 | +app.use(express.static(path.join(__dirname,'js'))); | ||
3 | 7 | ||
4 | -app.get('/',function (req,res) { | 8 | + |
5 | - res.send('로또 번호 생성 사이트 제작중입니다.'); | 9 | + |
10 | + | ||
11 | + | ||
12 | +app.listen(3000,function(){ | ||
13 | + console.log('Server On'); | ||
6 | }); | 14 | }); |
7 | 15 | ||
8 | -app.listen(3000, function(){ | ||
9 | - console.log('Server On!'); | ||
10 | -}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment