簡體   English   中英

部署時Heroku應用程序錯誤node.js應用程序

[英]Heroku application error node.js app, when deploying

    if (process.env.NODE_ENV === 'production') {
    apiOptions.server = "https://pacific-bastion-15276.herokuapp.com";

我的npm和node版本與packge.json中指定的相同。

我不知道問題所在。

我嘗試了heroku重新啟動,heroku ps:scale web = 0和heroku ps:scale web = 1,在heroku上設置了JWT_SECRET。 沒有任何工作

有任何想法嗎?? 我錯過了什么嗎?

    2017-03-29T23:34:56.224489+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
    2017-03-29T23:34:56.224809+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
    2017-03-29T23:34:56.224892+00:00 app[web.1]: npm ERR!     npm owner ls bookFace
    2017-03-29T23:34:56.224976+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
    2017-03-29T23:34:56.228404+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
    2017-03-29T23:34:56.228253+00:00 app[web.1]: 
    2017-03-29T23:34:56.228474+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
    2017-03-29T23:34:56.291775+00:00 heroku[web.1]: Process exited with status 1
    2017-03-29T23:34:56.325835+00:00 heroku[web.1]: State changed from starting to crashed
    2017-03-29T23:35:00.496063+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pacific-bastion-15276.herokuapp.com request_id=53f989a3-f47c-48c2-8c79-1234136b53f6 fwd="80.1.102.64" dyno= connect= service= status=503 bytes= protocol=https
    2017-03-29T23:35:01.865707+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=pacific-bastion-15276.herokuapp.com request_id=e9f50e76-4c05-4b81-88d8-1be6026a2715 fwd="80.1.102.64" dyno= connect= service= status=503 bytes= protocol=https

我在使用heroku & node.js時遇到了奇怪的崩潰,其中之一與我不小心從本地計算機上載了node_modules目錄有關。 以我為例,在heroku嘗試安裝依賴項時,它引起了沖突。

看看是否是這種情況。 如果那沒有幫助,請為您的問題提供更多背景信息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM