mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 22:18:12 +08:00
continued webpack4 port: update to recent build packages, remove unused packages, production webpack port
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
/* eslint-disable */
|
||||
// jshint esversion: 6
|
||||
var path = require("path");
|
||||
var fs = require("fs");
|
||||
var chalk = require("chalk");
|
||||
var express = require("express");
|
||||
var favicon = require("serve-favicon");
|
||||
var utils = require("./utils");
|
||||
|
||||
var PORT = process.env.PORT || 80;
|
||||
|
||||
// Launch server
|
||||
var app = express();
|
||||
|
||||
app.use(express.static("./build"));
|
||||
|
||||
app.use(favicon("./build/favicon.png"));
|
||||
|
||||
app.get("*", (req, res) => {
|
||||
res.sendFile(path.resolve("./build/index.html"));
|
||||
});
|
||||
|
||||
app.listen(PORT, err => {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return;
|
||||
}
|
||||
|
||||
utils.clearConsole();
|
||||
console.log(chalk.cyan("Production server started on port " + PORT));
|
||||
console.log();
|
||||
});
|
||||
Reference in New Issue
Block a user