我将应用程序部署到Heroku时遇到了麻烦。构建成功但由于某种原因我的应用程序不是在线检索CSS或JS文件。我正在使用Node.js.
extern "C" {
int soap_wsa_sender_fault_subcode(struct soap *soap, const char *faultsubcode, const char *faultstring, const char *faultdetail);
}
我假设Heroku对src文件有某种安全性或者沿着那些行。任何帮助,将不胜感激。提前谢谢。
答案 0 :(得分:0)
您的应用有错误:
2015-12-23T02:34:14.208032+00:00 app[web.1]: /app/node_modules/express/lib/application.js:209
2015-12-23T02:34:14.208060+00:00 app[web.1]: throw new TypeError('app.use() requires middleware functions');
2015-12-23T02:34:14.208062+00:00 app[web.1]: ^
2015-12-23T02:34:14.208063+00:00 app[web.1]:
2015-12-23T02:34:14.208067+00:00 app[web.1]: TypeError: app.use() requires middleware functions
2015-12-23T02:34:14.208068+00:00 app[web.1]: at EventEmitter.use (/app/node_modules/express/lib/application.js:209:11)
2015-12-23T02:34:14.208069+00:00 app[web.1]: at Object.<anonymous> (/app/index.js:8:5)
2015-12-23T02:34:14.208069+00:00 app[web.1]: at Module._compile (module.js:425:26)
2015-12-23T02:34:14.208070+00:00 app[web.1]: at Object.Module._extensions..js (module.js:432:10)
2015-12-23T02:34:14.208070+00:00 app[web.1]: at Module.load (module.js:356:32)
2015-12-23T02:34:14.208071+00:00 app[web.1]: at Function.Module._load (module.js:313:12)
2015-12-23T02:34:14.208071+00:00 app[web.1]: at Function.Module.runMain (module.js:457:10)
2015-12-23T02:34:14.208072+00:00 app[web.1]: at startup (node.js:138:18)
2015-12-23T02:34:14.208073+00:00 app[web.1]: at node.js:974:3
2015-12-23T02:34:14.997397+00:00 heroku[web.1]: Process exited with status 1
2015-12-23T02:34:16.318032+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=allert.herokuapp.com request_id=21b5b175-c8c3-4338-b1ff-073c55ff4dac fwd="142.113.215.26" dyno= connect= service= status=503 bytes=
2015-12-23T02:34:15.054571+00:00 heroku[web.1]: State changed from starting to crashed
检查index.js文件的第8行。它正在传递一些表达不明白的东西。
答案 1 :(得分:-1)
Heroku不显示静态文件。我在Amazon S3上托管了它们,该网站现在正在运行。