![](/img/trans.png)
[英]No Procfile detected, using the default web server (webrick)
[英]Puma Web Server No Procfile detected, using the default web server (webrick)
尝试将Puma Web Server与heroku一起使用。 我使用以下命令创建了一个名为“ Procfile”的Procfile。
web: bundle exec puma -C config/puma.rb
我也有一个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
我在终端收到以下警告
$git push heroku master
###### WARNING:
remote: No Procfile detected, using the default web server (webrick)
$git run bash
Bash确认它正在运行
$ls
显示所有文件。 Procfile
被识别为扩展名为Procfile.rtf
。
删除以前的Procfile。 创建了另一个Procfile并确保没有扩展名。 然后运行以下命令:
$Git add .
$Git commit -m "Procfile"
$Git push heroku master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.