当前位置: 首页 > 知识库问答 >
问题:

heroku接收应用程序错误。没有网络进程

皇甫高阳
2023-03-14

我的heroku服务器有这个问题

at=错误代码=H14 desc="没有运行Web进程"

我试图逃跑

heroku ps:scale web=1

但收到这个错误

扩展web进程。。。失败!没有像web这样的类型

Heroku ps: restart web.1--app dashboardaudi88重启web.1进程...完成

这是heroku的日志

heroku logs
2012-12-08T21:14:46+00:00 app[web.1]:   -d, [--database=DATABASE]      # Preconfigure for selected database (options:                     mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
2012-12-08T21:14:46+00:00 app[web.1]:       [--dev]                    # Setup the application with Gemfile pointing to your Rails checkout
2012-12-08T21:14:46+00:00 app[web.1]:   rails new APP_PATH [options]
2012-12-08T21:14:46+00:00 app[web.1]:                                  # Default: /usr/local/bin/ruby
2012-12-08T21:14:46+00:00 app[web.1]:   -m, [--template=TEMPLATE]      # Path to an application template (can be a filesystem path or URL)
2012-12-08T21:14:46+00:00 app[web.1]:   -f, [--force]    # Overwrite files that already exist
2012-12-08T21:14:46+00:00 app[web.1]:   -v, [--version]  # Show Rails version number and quit
2012-12-08T21:14:46+00:00 app[web.1]:   -j, [--javascript=JAVASCRIPT]  # Preconfigure for selected JavaScript library
2012-12-08T21:14:46+00:00 app[web.1]:       [--old-style-hash]         # Force using old style hash (:foo => 'bar') on Ruby >= 1.9
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1]: Description:
2012-12-08T21:14:46+00:00 app[web.1]:   -b, [--builder=BUILDER]        # Path to a application builder (can be a filesystem path or URL)
2012-12-08T21:14:46+00:00 app[web.1]:                                  # Default: sqlite3
2012-12-08T21:14:46+00:00 app[web.1]:       [--edge]                   # Setup the application with Gemfile pointing to Rails repository
2012-12-08T21:14:46+00:00 app[web.1]:   -q, [--quiet]    # Suppress status output
2012-12-08T21:14:46+00:00 app[web.1]:   -h, [--help]     # Show this help message and quit
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1
]: Options:
2012-12-08T21:14:46+00:00 app[web.1]:   -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
2012-12-08T21:14:46+00:00 app[web.1]:       [--skip-gemfile]           # Don't create a Gemfile
2012-12-08T21:14:46+00:00 app[web.1]:       [--skip-bundle]            # Don't run bundle install
2012-12-08T21:14:46+00:00 app[web.1]:   -G, [--skip-git]               # Skip Git ignores and keeps
2012-12-08T21:14:46+00:00 app[web.1]:   -O, [--skip-active-record]     # Skip Active Record files
2012-12-08T21:14:46+00:00 app[web.1]:     'rails new' runs in the .railsrc configuration file in your home directory.
2012-12-08T21:14:46+00:00 app[web.1]:   -J, [--skip-javascript]        # Skip JavaScript files
2012-12-08T21:14:46+00:00 app[web.1]:   -p, [--pretend]  # Run but do not make any changes
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1]:   -s, [--skip]     # Skip files that already exist
2012-12-08T21:14:46+00:00 app[web.1]:                                  # Default: jquery
2012-12-08T21:14:46+00:00 app[web.1]:   -T, [--skip-test-unit]         # Skip Test::Unit files
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1]: Runtime options:
2012-12-08T21:14:46+00:00 app[web.1]: Example:
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1]:     rails new ~/Code/Ruby/weblog
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1]:     See the README in the newly created application to get going.
2012-12-08T21:14:46+00:00 app[web.1]:     This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
2012-12-08T21:14:46+00:00 app[web.1]:     The 'rails new' command creates a new Rails application with a default
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1]: Rails options:
2012-12-08T21:14:46+00:00 app[web.1]:     directory structure and configuration at the path you specify.
2012-12-08T21:14:46+00:00 app[web.1]: 
2012-12-08T21:14:46+00:00 app[web.1]:     You can specify extra command-line arguments to be used every time
2012-12-08T21:14:46+00:00 app[web.1]:     Note that the arguments specified in the .railsrc file don't affect the
2012-12-08T21:14:46+00:00 app[web.1]:     defaults values shown above in this help message.
2012-12-08T21:14:47+00:00 heroku[web.1]: State changed from starting to crashed
2012-12-08T21:14:47+00:00 heroku[web.1]: Process exited with status 0
2012-12-08T21:23:59+00:00 heroku[web.1]: State changed from crashed to starting
2012-12-08T21:24:02+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 37045`
2012-12-08T21:24:06+00:00 app[web.1]:   -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
2012-12-08T21:24:06+00:00 app[web.1]:       [--skip-bundle]            # Don't run bundle install
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]:   -m, [--template=TEMPLATE]      # Path to an application template (can be a filesystem path or URL)
2012-12-08T21:24:06+00:00 app[web.1]:                                  # Default: /usr/local/bin/ruby
2012-12-08T21:24:06+00:00 app[web.1]:   -G, [--skip-git]               # Skip Git ignores and keeps
2012-12-08T21:24:06+00:00 app[web.1]:                                  # Default: sqlite3
2012-12-08T21:24:06+00:00 app[web.1]:   -d, [--database=DATABASE]      # Preconfigure for selected database (options:         mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
2012-12-08T21:24:06+00:00 app[web.1]:   -O, [--skip-active-record]     # Skip Active Record files
2012-12-08T21:24:06+00:00 app[web.1]: Options:
2012-12-08T21:24:06+00:00 app[web.1]:   -j, [--javascript=JAVASCRIPT]  # Preconfigure for selected JavaScript library
2012-12-08T21:24:06+00:00 app[web.1]:       [--edge]                   # Setup the application with Gemfile pointing to Rails repository
2012-12-08T21:24:06+00:00 app[web.1]: Usage:
2012-12-08T21:24:06+00:00 app[web.1]:   -b, [--builder=BUILDER]        # Path to a application builder (can be a filesystem path or URL)
2012-12-08T21:24:06+00:00 app[web.1]:   -S, [--skip-sprockets]         # Skip Sprockets files
2012-12-08T21:24:06+00:00 app[web.1]:       [--old-style-hash]         # Force using old style hash (:foo => 'bar') on Ruby >= 1.9
2012-12-08T21:24:06+00:00 app[web.1]:   -f, [--force]    # Overwrite files that already exist
2012-12-08T21:24:06+00:00 app[web.1]:       [--dev]                    # Setup the application with Gemfile pointing to your Rails checkout
2012-12-08T21:24:06+00:00 app[web.1]:                                  # Default: jquery
2012-12-08T21:24:06+00:00 app[web.1]:   -p, [--pretend]  # Run but do not make any changes
2012-12-08T21:24:06+00:00 app[web.1]:   -v, [--version]  # Show Rails version number and quit
2012-12-08T21:24:06+00:00 app[web.1]:   -J, [--skip-javascript]        # Skip JavaScript files
2012-12-08T21:24:06+00:00 app[web.1]:   -q, [--quiet]    # Suppress status output
2012-12-08T21:24:06+00:00 app[web.1]:   -h, [--help]     # Show this help message and quit
2012-12-08T21:24:06+00:00 app[web.1]:   -T, [--skip-test-unit]         # Skip Test::Unit files
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]:   -s, [--skip]     # Skip files that already exist
2012-12-08T21:24:06+00:00 app[web.1]: Description:
2012-12-08T21:24:06+00:00 app[web.1]:   rails new APP_PATH [options]
2012-12-08T21:24:06+00:00 app[web.1]:     The 'rails new' command creates a new Rails application with a default
2012-12
-08T21:24:06+00:00 app[web.1]:     defaults values shown above in this help message.
2012-12-08T21:24:06+00:00 app[web.1]:     directory structure and configuration at the path you specify.
2012-12-08T21:24:06+00:00 app[web.1]:     You can specify extra command-line arguments to be used every time
2012-12-08T21:24:06+00:00 app[web.1]:     'rails new' runs in the .railsrc configuration file in your home directory.
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]:     Note that the arguments specified in the .railsrc file don't affect the
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]: Example:
2012-12-08T21:24:06+00:00 app[web.1]:       [--skip-gemfile]           # Don't create a Gemfile
2012-12-08T21:24:06+00:00 app[web.1]:     This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
2012-12-08T21:24:06+00:00 app[web.1]: 
2012-12-08T21:24:06+00:00 app[web.1]:     See the README in the newly created application to get going.
2012-12-08T21:24:06+00:00 app[web.1]:     rails new ~/Code/Ruby/weblog
2012-12-08T21:24:06+00:00 app[web.1]: Runtime options:
2012-12-08T21:24:06+00:00 app[web.1]: Rails options:
2012-12-08T21:24:07+00:00 heroku[web.1]: State changed from starting to crashed
2012-12-08T21:24:07+00:00 heroku[web.1]: Process exited with status 0
2012-12-08T21:24:54+00:00 heroku[web.1]: State changed from crashed to starting

共有2个答案

寿阳华
2023-03-14

看着https://devcenter.heroku.com/articles/error-codes#h14-没有运行web动态,您应该运行:heroku ps:scale web=1,这为我修复了错误

左丘曦
2023-03-14

确保Procfile没有任何扩展名!例如,如果您使用Procfile。它将返回“缩放web进程…失败!没有web这样的类型”。删除Procfile的扩展名就可以了!

 类似资料:
  • 我使用npm模块进行了测试:backend.js上的“node-dev”和文件夹根目录上的“serve”。 我有两个指南试图帮助我: 和另一个来自Scotch.io的“在Heroku上使用MongoDB和node.js应用程序” 我在文章中没有做的不应该很重要:在tilcode中,它说使用github生成一个SSH密钥...相反,我用我的mac做了一个,用一些指南做了一个终端命令。 总结一下我的步

  • 我创建了一个spring boot web应用程序(在IntelliJ IDEA中),它在本地运行没有问题。 然后我构建了一个工件(Build)- 我尝试按照heroku在本演练中描述的步骤将应用程序部署到heroku:https://devcenter.heroku.com/articles/deploying-spring-boot-apps-to-heroku 注意:演练没有提到Procfi

  • 我正在Heroku上部署一个网站,但我在尝试运行“Heroku open”时收到了“应用程序错误”。 我相信我已经成功地将文件推送到Heroku中,这是我的“git推送heroku master”代码的一部分: 当我运行“heroku config-s | grep PATH”时,我得到了 我正在使用Ruby 1.9.3和Rails 4.0.0 文件夹 宝石环境 箱/轨道 垃圾箱/包裹 仓/耙

  • 这是完整的日志。我扫描了它,发现了3个错误: 我不知道为什么这三个错误同时发生,我不知道我的应用程序有什么问题,请帮助 我的Package.json: .Gitignore:

  • 我被Michael Hartl在Cloud 9上的Ruby on Ralis(第三版)卡住了。 我试图让heroku应用程序工作,但我得到了: 应用错误 应用程序中出现错误,无法提供您的页面。请稍后再试。 如果您是应用程序所有者,请查看日志以了解详细信息。 正如克洛伊建议的那样,我已经更改了“sass rails”版本并更新了“sass rails” 现在提交文件: 正如ecretmaster建议

  • 当我尝试在heroku打开我的应用程序时,我看到了下面一个屏幕,上面写着: 出现错误的日志如下: 2014-10-14T13:43:20.222314+00:00 Heroku[router]:at=error code=h10 desc=“App brassed”method=get path=“/”host=dry-reaches-7872.herokuapp.com request_id=5