Ruby Puma Web服务器未检测到Procfile,使用默认Web服务器(webrick)
正在尝试将Puma Web服务器与heroku一起用于应用程序。我创建了一个名为“Procfile”的Procfile,其中包含以下内容Ruby Puma Web服务器未检测到Procfile,使用默认Web服务器(webrick),ruby,heroku,puma,procfile,Ruby,Heroku,Puma,Procfile,正在尝试将Puma Web服务器与heroku一起用于应用程序。我创建了一个名为“Procfile”的Procfile,其中包含以下内容 web: bundle exec puma -C config/puma.rb workers Integer(ENV['WEB_CONCURRENCY'] || 2) threads_count = Integer(ENV['MAX_THREADS'] || 5) threads threads_count, threads_count preload_
web: bundle exec puma -C 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
我还有一个config/puma.rb文件,其中包含以下内容
web: bundle exec puma -C 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)
Bash确认它正在运行
$ls
所有文件都显示出来了<代码>Procfile被识别,扩展名为Procfile.rtf
删除了以前的proc文件。创建了另一个Procfile并确保没有扩展名。然后运行以下命令:
$Git add .
$Git commit -m "Procfile"
$Git push heroku master
发布错误,以便更好地评估问题欢迎使用堆栈溢出。我们需要你提供更多的信息。确切的错误是什么?请阅读“”。您的程序文件是否在应用程序的根文件夹中?在推送之前是否提交了它?是!当我“$git commit-m”Procfile“$nothing to commit,working directory clean”时,您是否使用了正确的大小写?
Procfile
-如果执行heroku运行bash
并执行ls