Browse Source

Have a proper 'binary' entry point

master
Sven Slootweg 2 years ago
parent
commit
24695c6f20
  1. 6
      bin/matrix-rooms

6
index.js → bin/matrix-rooms

@ -1,3 +1,5 @@
#!/usr/bin/env node
"use strict";
const Promise = require("bluebird");
@ -22,11 +24,11 @@ function generateSince(hostname, token) {
let app = express();
app.set("views", path.join(__dirname, "views"));
app.set("views", path.join(__dirname, "../views"));
app.set("view engine", "jsx");
app.engine("jsx", expressReactViews.createEngine());
app.use(express.static(path.join(__dirname, "public")));
app.use(express.static(path.join(__dirname, "../public")));
let router = expressPromiseRouter();
Loading…
Cancel
Save