LoginSignup
0
0

More than 1 year has passed since last update.

エラー:bundler: command not found: unicorn_rails Install missing gem executables with `bundle install`

Posted at

はじめに

プログラミング初心者による備忘録です。

AWSでデプロイするためにunicornでrailsを起動させようとした所、エラーが発生。

エラー内容

[ec2-user@ip-000-00-00-00 hoge]$ bundle exec unicorn_rails -c config/unicorn.rb -E production -D
bundler: command not found: unicorn_rails
Install missing gem executables with `bundle install`

試したこと

下記のサイト様の症状と同じなので解決方法を試す。
参考サイト https://teratail.com/questions/315531

❶rbenvをrehash
❷bundlerの入れ忘れ
❸GitHubへの反映(push,bundle install)

しかし、解決できず。

解決方法

% cat .bundle/config

でconfigファイルの設定を確認すると

BUNDLE_WITHOUT: "production"

productionグループで設定しているgemがインストールされていなかったみたいです。

そこで

bundle install --with production

prodectionをしっかり読み込むように。

これで正常にrailsサーバーが立ち上がりました!

0
0
0

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
0
0