【发布时间】:2015-12-18 03:22:54
【问题描述】:
尝试将 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)
【问题讨论】:
-
发布错误以便我们更好地评估问题
-
欢迎来到 Stack Overflow。我们需要您提供更多信息。确切的错误是什么?请阅读“How to Ask”。
-
您的 Procfile 是否在应用的根文件夹中,您在推送之前提交了吗?
-
是的!当我 "$git commit -m "Procfile": "$nothing to commit, working directory clean"
-
您使用的大小写是否正确?
Procfile- 如果您执行heroku run bash并执行ls,您会在文件列表中看到它吗?