2
나는 pg
보석이 제대로 구축하도록 deploy.rb
에서 구성 매개 변수를 추가하기 위해 노력하고있어 찾을 수 없습니다 비어 있지 않은 Gemfile의 : 나는 --global
그 --local
를 사용하는 경우번들 구성은 Gemfile
* executing `bundle:install'
triggering before callbacks for `bundle:install'
* executing "ls -l /apps/my_app/releases/20121008195429/Gemfile"
servers: ["my_server.com"]
[my_server.com] executing command
** [out :: my_server.com] -rw-r--r-- 1 webapp webapp 1291 Oct 5 22:34 /apps/my_app/releases/20121008195429/Gemfile
command finished in 157ms
* executing "bundle config --local --gemfile=/apps/my_app/releases/20121008195429/Gemfile build.pg --with-pg-config=/usr/pgsql-9.1/bin/pg_config"
servers: ["my_server.com"]
[my_server.com] executing command
** [out :: my_server.com] Could not locate Gemfile
나는 같은 결과를 얻을. 나는 global
/local
플래그를 제거하면, 나는 다른 오류가 발생합니다 :
** [out :: my_server.com] Invalid scope --gemfile=/apps/my_app/releases/20121008194937/Gemfile given. Please use --local or --global.
상황을 혼란 글로벌 구성이나 상황이있는 것 같습니다. 어떻게 bundle config
을 내 Gemfile
으로 볼 수 있습니까? 이 작업을 수행하는 더 좋은 방법이 있습니까?
# man bundle-config
...
gemfile (BUNDLE_GEMFILE)
The name of the file that bundler should use as the Gemfile. This location of this file
also sets the root of the project, which is used to resolve relative paths in the Gemfile,
among other things. By default, bundler will search up from the current working directory
until it finds a Gemfile.
I 먼저 그 디렉토리 cd'ing하여 문제 해결 :
bundle install
명령에 사용
--gemfile
플래그 달리
번들 설정 질문이있을 때마다, 항상 범인 인 pg-config입니다. 왜?!! –