[英]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.