LoginSignup
2
2

More than 3 years have passed since last update.

【Ruby on rails】 No Procfile detected, using the default web server.と表示される。

Posted at

警告内容

herokuデプロイ時に発生しました。

###### WARNING:
remote:        No Procfile detected, using the default web server.
remote:        We recommend explicitly declaring how to boot your server process via a Procfile.
remote:        https://devcenter.heroku.com/articles/ruby-default-web-server

解決方法

どうやら、Procfileが見つからないとのことです。
プロジェクトのルートディレクリ直下に「Procfile」を作成する必要があります。

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

こちらの意味は「config/puma.rb」のファイルを読み込むように宣言しています。

あとはいつもの通りにコミット→プッシュしてみます。
警告が消えました!

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2