1 Star 0 Fork 89

lethe/stackedit

forked from 豆萁/stackedit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 597 Bytes
一键复制 编辑 原始数据 按行查看 历史
Benoit Schweblin 提交于 2021-03-29 17:33 . Upgraded Katex to v0.13.
const env = require('./config/prod.env');
Object.keys(env).forEach((key) => {
if (!process.env[key]) {
process.env[key] = JSON.parse(env[key]);
}
});
const http = require('http');
const express = require('express');
const app = express();
require('./server')(app);
const port = parseInt(process.env.PORT || 8080, 10);
const httpServer = http.createServer(app);
httpServer.listen(port, null, () => {
console.log(`HTTP server started: http://localhost:${port}`);
});
// Handle graceful shutdown
process.on('SIGTERM', () => {
httpServer.close(() => {
process.exit(0);
});
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/SN42/stackedit.git
[email protected]:SN42/stackedit.git
SN42
stackedit
stackedit
master

搜索帮助