2017-08-25 76 views
1

該項目通過我的github連接併成功建立,當我點擊「打開應用程序」我得到這樣的一個「應用程序錯誤」 ......麻煩部署到Heroku的(「應用程序錯誤」)

我的「日誌「在Heroku上的樣子:

Node.js app detected 
Creating runtime environment 

    NPM_CONFIG_LOGLEVEL=error 
    NPM_CONFIG_PRODUCTION=true 
    NODE_VERBOSE=false 
    NODE_ENV=production 
    NODE_MODULES_CACHE=true 
Installing binaries 
    engines.node (package.json): unspecified 
    engines.npm (package.json): unspecified (use default) 

    Resolving node version 6.x... 
    Downloading and installing node 6.11.2... 
    Using default npm version: 3.10.10 
Restoring cache 
    Loading 2 from cacheDirectories (default): 
    - node_modules 
    - bower_components (not cached - skipping) 
Building dependencies 
    Installing node modules (package.json) 
Caching build 
    Clearing previous node cache 
    Saving 2 cacheDirectories (default): 
    - node_modules 
    - bower_components (nothing to cache) 
Build succeeded! 
Discovering process types 
    Procfile declares types  -> (none) 
    Default types for buildpack -> web 
Compressing... 
    Done: 42.5M 
Launching... 
    Released v10 
    https://ken-neiheisel-studio.herokuapp.com/ deployed to Heroku 

而且我的package.json

package.json

不知道到底是什麼問題?

回答

0

最近有同樣的問題,第一次使用Heroku,一切看起來不錯,但生成完好,但我似乎無法得到日誌中的「Procfile聲明類型 - >(無)」錯誤。我嘗試了一切,然後意識到我必須在那個項目中看到我以前看不到的Procfile版本。我正在Windows中查看可見文件夾,其中Procfile非常完美。

要解決我從projecct文件夾中刪除了我的Procfile。新鮮的git添加了。和新鮮的git commit -m「xxx」將所有文件加載到git/heroku中......將Procfile故意離開。這清除了存儲或緩存在git或heroku中的Procfile的錯誤版本。然後我添加了一個新的Procfile到文件夾。另一個git add。並提交-m,最後清除所有關於Procfile的奇怪錯誤,並將應用程序加載到heroku/web。