Heroku 收到应用程序错误.没有网络进程



>我的 heroku 服务器上

遇到了这个问题at=错误代码=H14 desc="没有正在运行的 Web 进程"

我试图运行

英雄库 PS:比例网络=1

但收到此错误

扩展网络进程...失败 ! 没有网络这样的类型

Heroku PS:重启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

确保Procfile没有任何扩展名!例如,如果您使用 Procfile.txt它将返回"正在扩展 Web 进程...失败!没有网络这样的类型"。删除Procfile的扩展名,它将起作用!

查看 https://devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running,您应该运行:heroku ps:scale web=1 ,这为我修复了错误

最新更新