【发布时间】:2017-09-01 22:29:13
【问题描述】:
我在 Heroku 上部署我的应用程序后收到此错误,我已包含我的项目结构?它清楚地表明我已包含文件,但我得到一个显示错误的空白页面。为什么?
在我的 app.js 上
app.use('/api',routesApi);
app.use(function(req, res) {
res.sendFile(path.join(__dirname, 'app_client', 'index.html'));
});
【问题讨论】:
标签: javascript angularjs node.js heroku