简体   繁体   English

Puma Web服务器,使用默认的Web服务器(webrick)未检测到Procfile

[英]Puma Web Server No Procfile detected, using the default web server (webrick)

Attempting to use Puma Web Server with heroku for application. 尝试将Puma Web Server与heroku一起使用。 I have created a Procfile called "Procfile" with the following. 我使用以下命令创建了一个名为“ Procfile”的Procfile。

web: bundle exec puma -C config/puma.rb

I also have a config/puma.rb file with the following. 我也有一个config / puma.rb文件,内容如下。

workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup      DefaultRackup
port        ENV['PORT']     || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do 
   ActiveRecord::Base.establish_connection
end

I receive the following warning in terminal 我在终端收到以下警告

$git push heroku master

###### WARNING:
remote:        No Procfile detected, using the default web server (webrick)
$git run bash

Bash confirmed it was running Bash确认它正在运行

$ls 

All the files were shown. 显示所有文件。 Procfile was being recognized with an extension as Procfile.rtf . Procfile被识别为扩展名为Procfile.rtf

Deleted previous Procfile. 删除以前的Procfile。 Created another Procfile and made sure there was no extensions. 创建了另一个Procfile并确保没有扩展名。 Then ran the following: 然后运行以下命令:

$Git add .
$Git commit -m "Procfile" 
$Git push heroku master

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未检测到 Procfile,使用默认 Web 服务器 (webrick) - No Procfile detected, using the default web server (webrick) Puma web 服务器积压行为 - Puma web server backlog behavior Puma Web服务器(ROR)和连接超时 - Puma web server (ROR) and connection timeout 无法启动WEBRick Web服务器-Ruby抛出MySQL错误 - Can't start WEBRick web server - Ruby is throwing MySQL errors 我怎么能用ruby web服务器puma运行? - How can I run dashing with ruby web server puma? 使用WEBrick来提供PHP Web应用程序 - Using WEBrick to serve PHP web applications 如何向 LAN 添加主机名,以便 Ruby Web 服务器(例如 WEBrick)可以使用该主机名提供服务? - How to add a hostname to the LAN so that a Ruby web server, such as WEBrick can serve off that hostname? Ruby Sinatra 编译错误:找不到服务器处理程序(thin、puma、reel、HTTP、webrick)。 (运行时错误) - Ruby Sinatra Compile Error : Server handler (thin,puma,reel,HTTP,webrick) not found. (RuntimeError) 我的Rails项目中的所有Ruby文件是否都存储在指定的服务器上? (例如Puma,Webrick) - Are all my Ruby files in my Rails project stored on the server I specify? (eg. Puma, Webrick) 通过Puma在Rails 4应用程序中使用Web套接字 - Using Web Sockets in a Rails 4 application with Puma
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM