내 application.yml 파일에서 변경 사항을 푸시하려고 할 때 항상 명령을 통해 figaro gem을 사용합니다. : 최신의 정보를 확인 댓글 후Rails figaro gem - 'figaro : heroku'(Rails 4/figaro gem/heroku) 작업을 빌드하는 법을 모릅니다.
:
$ rake figaro:heroku
나는 오랫동안 그것을하지했지만 오늘 시도하고이 오류가 점점 오전 :
[email protected]:~/rails_projects/graalio_app$ rake figaro:heroku --trace
DEPRECATION WARNING: Support for Rails < 4.1.0 will be dropped. (called from require at /home/mathieu/.rvm/gems/[email protected]/gems/bundler-1.5.3/lib/bundler/runtime.rb:76)
rake aborted!
Don't know how to build task 'figaro:heroku'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/task_manager.rb:62:in `[]'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:149:in `invoke_task'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/home/mathieu/.rvm/gems/[email protected]/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/home/mathieu/.rvm/gems/[email protected]/bin/rake:23:in `load'
/home/mathieu/.rvm/gems/[email protected]/bin/rake:23:in `<main>'
/home/mathieu/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval'
/home/mathieu/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>'
편집을 figaro 보석 : https://github.com/laserlemon/figaro#heroku-configuration
내가 시도 :$ figaro heroku:set -e production
하지만 오류 얻을 :
/home/mathieu/.rvm/gems/[email protected]/gems/figaro-1.0.0/lib/figaro/cli/task.rb:28:in `system': no implicit conversion of Array into String (TypeError)
당신은 ['피가로에게 Heroku를 : set']하셨습니까 (https://github.com/laserlemon/figaro#heroku)? –
Nick에게 감사드립니다. 내 편집을 참조 – Mathieu
내가 오류를 발견 : 문자열에 내 설정을 넣어 야했다 – Mathieu