1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Capistorino3でのエラー対処

Last updated at Posted at 2015-02-13

bundle stderr: /usr/bin/env: bundle:

これはCapistorinoではsudoでコマンド実行されるが一般ユーザーにしかパスが通っていないことが原因

sudo visudo
して

Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin

のように適宜sudoで必要なpathを追加

capistranoからnokogiriがインストールできない(またnokogiriか)

deploy.rbに
set :bundle_env_variables, { 'NOKOGIRI_USE_SYSTEM_LIBRARIES' => 1 }
を記述したら解決

こんなエラーで手詰まり中
LoadError: cannot load such file -- rails/all

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?