UNPKG
generator-ionicgenerator
Version:
latest (0.0.0)
0.0.0
An Ionic app, custom with gulp and sass
generator-ionicgenerator
/
generators
/
app
/
templates
/
web.js
11 lines
(8 loc)
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
express =
require
(
'express'
);
var
app =
express
(); app.
use
(
'/'
,
function
(
req, res, next
)
{
var
host = req.
header
(
'host'
);
next
(); }); app.
use
(
'/'
, express.
static
(__dirname +
'/www'
)); app.
listen
(process.env.PORT ||
5000
);