Compare commits
2 Commits
acfdc6af16
...
91551e711d
Author | SHA1 | Date | |
---|---|---|---|
91551e711d | |||
22ee270d42 |
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "stencil build",
|
"build": "stencil build",
|
||||||
"dev": "stencil build --dev --watch",
|
"dev": "stencil build --dev --watch",
|
||||||
"server": "nodemon server/index.js 0.0.0.0 3000",
|
"server": "nodemon --watch server server/index.js",
|
||||||
"start": "npm-run-all -p -r dev server",
|
"start": "npm-run-all -p -r dev server",
|
||||||
"test": "stencil test --spec --e2e",
|
"test": "stencil test --spec --e2e",
|
||||||
"test.watch": "stencil test --spec --e2e --watchAll",
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
||||||
|
@@ -3,8 +3,9 @@ require("dotenv").config()
|
|||||||
const express = require('express');
|
const express = require('express');
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
|
|
||||||
app.use('/', express.static('./www'))
|
app.use('/', express.static('./www'))
|
||||||
console.log(process.env.API_URL);
|
console.log(process.env.API_URL);
|
||||||
app.get('/apiurl', (req, res) => res.send(process.env.API_URL));
|
app.get('/apiurl', (req, res) => res.send(process.env.API_URL));
|
||||||
|
|
||||||
app.listen(3000, '0.0.0.0');
|
app.listen(process.env.PORT || 3000, process.env.HOST || 'localhost');
|
Reference in New Issue
Block a user