1 Star 0 Fork 9

tommy/hapi-react-isomorphic-boilerplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 646 Bytes
一键复制 编辑 原始数据 按行查看 历史
潘韬 提交于 2016-12-12 10:23 . 完成api与 proxy
require('fs').readFile('./.babelrc', (err, content) => {
if( err ) throw err;
try {
const babelrc = JSON.parse(content);
require('babel-core/register')(babelrc);
require('./src/globals');
global.__SERVER__ = true;
const boot = require('./src/server').default;
boot ( server => {
let env = global.__ENVIROMENT__;
for ( var key of Object.keys(server.connections) ) {
let name = server.connections[key].name;
let uri = server.connections[key].info.uri;
console.info(`==> 🌎 Hapi ${env} Server(${name}) is listening on ${uri}`);
}
});
} catch(e) {
throw e;
}
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/tommy2z/hapi-react-isomorphic-boilerplate.git
[email protected]:tommy2z/hapi-react-isomorphic-boilerplate.git
tommy2z
hapi-react-isomorphic-boilerplate
hapi-react-isomorphic-boilerplate
master

搜索帮助