14 lines
273 B
JavaScript
14 lines
273 B
JavaScript
|
// server.js
|
||
|
|
||
|
var express = require('express');
|
||
|
var path = require('path');
|
||
|
var serveStatic = require('serve-static');
|
||
|
|
||
|
app = express();
|
||
|
app.use(serveStatic(__dirname + "/dist"));
|
||
|
|
||
|
var port = process.env.PORT || 80;
|
||
|
app.listen(port);
|
||
|
|
||
|
console.log('server started '+ port);
|