2017-08-25 116 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。